Is Implicit Flow supported in the swagger? #8252
-
|
I see there is OAuth2PasswordRequestForm but I dun see an example which allows me to set client Id/redirect url/scope for this kind of OAuth2 authentication flow |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
https://swagger.io/docs/specification/authentication/openid-connect-discovery/
Seems work in progress~ |
Beta Was this translation helpful? Give feedback.
-
|
I have to check directly with Swagger UI how it would work with several providers, but I guess @hampsterx already found some info about it. |
Beta Was this translation helpful? Give feedback.
-
|
@chantinghin0203 @hampsterx the "work in progress" is for the OIDC (OpenID Connect) discovery implementation in swagger-ui (see the issue 3517 mentioned by hampsterx) Make sure the implicit flow is enabled in OAuth provider (keycloak in my case) settings for the client that you use. Not sure what would be the syntax for the the spec written with OpenAPI 2.0 and haven't tested it. But you may refer to https://swagger.io/docs/specification/2-0/authentication/ or convert your 2.0 spec into 3.0 using the online converter. |
Beta Was this translation helpful? Give feedback.
-
|
Yep, I think @nikitamendelbaum is right. |
Beta Was this translation helpful? Give feedback.
-
|
Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues. |
Beta Was this translation helpful? Give feedback.
@chantinghin0203 @hampsterx the "work in progress" is for the OIDC (OpenID Connect) discovery implementation in swagger-ui (see the issue 3517 mentioned by hampsterx)
However, the initial question was if the OAuth2 implicit flow is supported in swagger-ui. The question has nothing to do with OIDC and the answer to it is YES.
Implicit flow does work in Swagger-ui v3.0.5 using the OpenAPI 3.0 template and Keycloak as the OAuth2 provider.
This is what I have in the template (based on the documentation https://swagger.io/docs/specification/authentication/oauth2/):