Swagger-ui: OAuth-2.0 supported flows

Created on 16 Sep 2016  路  6Comments  路  Source: swagger-api/swagger-ui

It's not a real issue, but i would like to understand which OAuth2 flows SwaggerUI ( I am using v2.2) support and i found no real documentation about it. Can someone tell me which flows are supported?

I am in need of "Authorization Code Grant flow" where user login is required and also, i am looking for the "Client Credentials flow" (Could this be application flow in swaggerui?). Are these two supported and what do i have to put in my json spec?

Until now i got:

"securityDefinitions": { "OauthSecurity": { type": "oauth2", "authorizationUrl": "https://adfsserver/adfs/oauth2/authorize", "tokenUrl": "https://adfsserver/adfs/oauth2/token", "grantType" : "authorization_code", "flow": "accessCode", "scopes":{ "write:sessions":"kill sessions", "read:sessions":"get sessions" } } },

*note: I have used AccesCode since i thought it could be same as auth. grant code flow.

Most helpful comment

Currently only the implicit flow is supported in the UI. Password / access code flows will be added soon.

All 6 comments

Currently only the implicit flow is supported in the UI. Password / access code flows will be added soon.

Ok we can close this issue then, thx.
Would be good if there will be a bit documentation when and how the next OAuth2 flows are supported.

@fehguy - looking forward to this feature as we're waiting to incorporate it in our project. Do you by any chance have a time frame on when this will be added?

No ETA, but we're working on it.

@webron - thanks for letting us know!

All flows should be supported in 3.X.

Was this page helpful?
0 / 5 - 0 ratings