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

Does swagger-docs support OAuth 2.0? #97

Closed
rhazegh opened this issue Oct 22, 2014 · 8 comments
Closed

Does swagger-docs support OAuth 2.0? #97

rhazegh opened this issue Oct 22, 2014 · 8 comments

Comments

@rhazegh
Copy link

rhazegh commented Oct 22, 2014

Can I generate json spec files that are capable of handling OAuth 2.0 authentication in the swagger-ui?

@richhollis
Copy link
Owner

Hi @rhazegh - Not currently I'm afraid.

@RKushnir
Copy link

RKushnir commented Nov 6, 2014

@rhazegh I created a pull request to support this #101
@richhollis I'd like to hear your feedback and fix if anything is not right to get this merged soon.

@svoynow
Copy link

svoynow commented Nov 17, 2014

a big 1 for this. Let me know if there's anything I can do to help get this ready to be merged.

@fotinakis
Copy link
Contributor

Just to steal some thunder and offer an alternative here, this is supported by my swagger-blocks gem if you're interested (bearing in mind that it's an unrelated project and a different doc format). Example oauth2 code here.

@McRip
Copy link

McRip commented Feb 5, 2015

huge 1 for this too!

@fotinakis
Copy link
Contributor

This was highly requested in swagger-blocks too, so I just added docs for how to do it if anyone's interested: https://github.com/fotinakis/swagger-blocks#security-handling

@richhollis
Copy link
Owner

I know this issue is old, but thanks to @rhazegh for the PR. I've used all of your code to implement the authorizations support. Thanks so much for that! 0.2.1 adds this support.

@rhazegh
Copy link
Author

rhazegh commented Jan 13, 2016

@richhollis the PR was made by @RKushnir

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

6 participants