Skip to content
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

OAuth-2.0 supported flows #2406

Closed
Gobliins opened this issue Sep 16, 2016 · 6 comments
Closed

OAuth-2.0 supported flows #2406

Gobliins opened this issue Sep 16, 2016 · 6 comments

Comments

@Gobliins
Copy link

Gobliins commented Sep 16, 2016

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.

@fehguy
Copy link
Contributor

fehguy commented Sep 21, 2016

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

@Gobliins
Copy link
Author

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.

@mdhalgara
Copy link

@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?

@webron
Copy link
Contributor

webron commented Sep 28, 2016

No ETA, but we're working on it.

@mdhalgara
Copy link

@webron - thanks for letting us know!

@webron
Copy link
Contributor

webron commented Mar 24, 2017

All flows should be supported in 3.X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants