-
Notifications
You must be signed in to change notification settings - Fork 96
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
Implement OAuth 2 support #448
Conversation
@croudet feel free to review this PR if you want to |
openapi/src/main/java/io/micronaut/openapi/view/SwaggerUIConfig.java
Outdated
Show resolved
Hide resolved
openapi/src/main/java/io/micronaut/openapi/view/SwaggerUIConfig.java
Outdated
Show resolved
Hide resolved
@alvarosanchez I've verified this works with a Amazon Cognito Oauth 2.0 application with a configuration such as: micronaut:
security:
authentication: idtoken
oauth2:
clients:
cognito:
client-id: 'xxx'
client-secret: 'yyy'
openid:
issuer: 'https://cognito-idp.us-east-1.amazonaws.com/poolIdChangeMe/'
endpoints:
logout:
get-allowed: true I had to override the I've extracted several constants, if you think it is a bad idea because they make the code harder to read I can revert those changes easily. |
Thanks for the refactor. I didn't add constants because I didn't see them being much used in the project. I tested myself with Okta, and it worked without any further customisation. |
Fixes #422
Fixes #428
Fixes #437