Skip to content
forked from nov/rack-oauth2

OAuth 2.0 Server & Client Library. Both Bearer and MAC token type are supported.

License

Notifications You must be signed in to change notification settings

toddw/rack-oauth2

 
 

Repository files navigation

rack-oauth2

OAuth 2.0 Server & Client Library. Both Bearer and MAC token type are supported.

The OAuth 2.0 Authorization Protocol (draft 15) tools.ietf.org/html/draft-ietf-oauth-v2-15

The OAuth 2.0 Protocol: Bearer Tokens (draft 06) tools.ietf.org/html/draft-ietf-oauth-v2-bearer-06

HTTP Authentication: MAC Access Authentication (draft 00) www.ietf.org/id/draft-ietf-oauth-v2-http-mac-00.txt

Installation

gem install rack-oauth2

Resources

Sample Server Application (Rails3)

Bearer

Running on Heroku rack-oauth2-sample.heroku.com

Source on GitHub github.com/nov/rack-oauth2-sample

MAC

Running on Heroku rack-oauth2-sample-mac.heroku.com

Source on GitHub github.com/nov/rack-oauth2-sample-mac

Sample Client

Common between Bearer and MAC

Authorization Request (request_type: ‘code’ and ‘token’) gist.github.com/862393

Token Request (grant_type: ‘client_credentials’, ‘password’, ‘authorization_code’ and ‘refresh_token’) gist.github.com/883541

Bearer

Resource Request (request both for resource owner resource and for client resource) gist.github.com/883575

MAC

Resource Request (request both for resource owner resource and for client resource) gist.github.com/933885

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 nov matake. See LICENSE for details.

About

OAuth 2.0 Server & Client Library. Both Bearer and MAC token type are supported.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 99.4%
  • JavaScript 0.6%