Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3. Building an oauth2 provider

I am developing an API in Ruby on Rails 3 and I would like to secure it with Oauth2. In other words, I need to create an Oauth provider. Is there a working gem for Rails 3 out there or perhaps a tutorial on the issue?

UPDATE

I know Rails are REST based so I find it very strange that there are no tutorials on how to create a public API and secure it. Does anyone know of any good tutorials. Preferable with oAuth.

Thankful for all help!!

like image 341
Jonathan Clark Avatar asked Feb 04 '11 16:02

Jonathan Clark


1 Answers

Check out this gem https://github.com/applicake/doorkeeper

It is for Rails 3, the development it's early stages though.

There's also an example app that you take a look and see how the API is done.

http://doorkeeper-provider.herokuapp.com/

like image 114
Felipe Philipp Avatar answered Sep 29 '22 04:09

Felipe Philipp