Sample OAuth2 Server Application using Rack::OAuth2 in Rails3
Setup & Run
git clone git@github.com:nov/rack-oauth2-sample.git cd rack-oauth2-sample bundle install rake db:migrate rails server
Then go to http://localhost:3000
Client Sample Code
Read “Common between Bearer and MAC” and “Bearer” samples in “Sample Client” section here.
https://github.com/nov/rack-oauth2