-
Notifications
You must be signed in to change notification settings - Fork 277
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
bugfix/incorrect redirect_uri
query param in OAuth2 implicit authentication
#92
bugfix/incorrect redirect_uri
query param in OAuth2 implicit authentication
#92
Conversation
updated tests updated readme
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
=========================================
- Coverage 84.12% 83.33% -0.8%
=========================================
Files 1 1
Lines 63 84 +21
=========================================
+ Hits 53 70 +17
- Misses 8 13 +5
+ Partials 2 1 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Canecat could you tell why need to add oauth2RedirectUrl
? What's your scenario?
Hello @easonlin404. If we want to use OAuth2 implicit flow then we need to set By default Thank you for quick response. |
added calculation of the host for oauth2RedirectURL swagger ui param
Hi @easonlin404, any updates? |
- moved serving of UI template to the `SwaggerBase` - added `ui.initOAuth` UI call - added support for `Oauth2ClientID` and `Oauth2AppName` - added config helpers - minor refactoring - fixed tests since they were assuming that UI is always served from the root
@easonlin404 i've just come across the same issue as described in #92 (comment)
|
@Canecat @easonlin404 i've just checked and the issue is reproduced not only with the Implicit Grant. It's as well visible with the Authorization Code Grant (which is currently considered as a best practice). |
@Canecat please use |
@Canecat Please resolve the conflicts and I will try to do a review after that. |
Closing reason: Outdated. |
added support of
oauth2RedirectUrl
swagger UI config parameterupdated Config struct
added new config helpers
updated tests
updated readme