Rails 3. Creating an API with Oauth
I am currently thinking of developing an API in Rails 3 using Oauth2 as authorization for developers. Do any of you guys know of a gem that can handle the authentication and authorization for the API? Perhaps a guide for Rails 开发者_如何学C3 somewhere?
Thankful for all input!
I think this might help, however, I'm not sure if that's what you were looking for.
https://github.com/pelle/oauth-plugin/tree/rails3
oauth-plugin for Rails 3 should now allow you do create an OAuth 2 as well as OAuth 1a provider.
Alternatively, for OAuth 2 only, you could use the Thoughtworks oauth2 provider.
I think doorkeeper gem will help u.
https://github.com/applicake/doorkeeper.git
精彩评论