OAuth2 configuration in micronaut
Opened this issue · 0 comments
Deleted user commented
How can we configure OAuth 2.0 configuration https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/oauth2.md in Swagger UI
@SecurityScheme(name = "Open Id Connect",
type = SecuritySchemeType.OAUTH2,
scheme = "bearer",
bearerFormat = "jwt",
flows = @OAuthFlows(
authorizationCode = @OAuthFlow(
authorizationUrl = "https://dev-6271510.okta.com/oauth2/default/v1/authorize",
tokenUrl = "https://dev-6271510.okta.com/oauth2/default/v1/token",
refreshUrl = "",
extensions ={@Extension(name = "client_id",properties = {@ExtensionProperty(name = "client_id", value = "ssssss")})},
scopes = {@OAuthScope(name = "openid", description= "Open Id scope"),
@OAuthScope(name = "profile", description= "Name scope"),
@OAuthScope(name = "email" , description= "Email scope")}
))
)
How to set clientId, clientSecret and usePkceWithAuthorizationCodeGrant