Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up HandleAccessTokenRequest #19

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

GKnirps
Copy link
Contributor

@GKnirps GKnirps commented Jul 4, 2023

  • check for error first and for result second
  • if neither error nor result is present: that is an Internal Server Error
  • code worked fine before, but a change in AccessTokenProcedure in the future could have messed it up.

- check for error first and for result second
- if neither error nor result is present, that is an Internal Server Error
- code worked fine before, but a change in `AccessTokenProcedure` in the future
  could have messed it up.
Cause: "UNSPECIFIED",
}
return httpwrapper.NewResponse(http.StatusForbidden, nil, problemDetails)
return httpwrapper.NewResponse(http.StatusInternalServerError, nil, problemDetails)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please modify to:
httpwrapper.NewResponse(problemDetails.Status, nil, problemDetails)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently on vacation, I'll do it when I get back (next week).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@GKnirps GKnirps requested a review from tim-ywliu July 17, 2023 06:44
@tim-ywliu tim-ywliu merged commit 021cda5 into free5gc:main Jul 17, 2023
@GKnirps GKnirps deleted the cleanup-access-token-handler branch July 17, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants