richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
750 stars 150 forks source link

Does swagger-docs support OAuth 2.0? #97

Closed rhazegh closed 8 years ago

rhazegh commented 10 years ago

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

richhollis commented 10 years ago

Hi @rhazegh - Not currently I'm afraid.

RKushnir commented 10 years ago

@rhazegh I created a pull request to support this https://github.com/richhollis/swagger-docs/pull/101 @richhollis I'd like to hear your feedback and fix if anything is not right to get this merged soon.

svoynow commented 9 years ago

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

fotinakis commented 9 years ago

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 commented 9 years ago

huge +1 for this too!

fotinakis commented 9 years ago

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 commented 8 years ago

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 commented 8 years ago

@richhollis the PR was made by @RKushnir