Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
OAuth 2.0 Server & Client Library. Both Bearer and MAC token type are supported.
Ruby

This branch is 211 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rack
spec
.document
.gitignore
.rspec
Gemfile
LICENSE
README.rdoc
Rakefile
VERSION
rack-oauth2.gemspec

README.rdoc

rack-oauth2

Rack Middleware for OAuth2 server. OAuth2 client library is also included.

This gem is based on OAuth 2.0 draft v.15 tools.ietf.org/html/draft-ietf-oauth-v2-15

Plus, both Bearer and MAC are supported.

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

HTTP Authentication: MAC Authentication tools.ietf.org/html/draft-hammer-oauth-v2-mac-token-02

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

Bearer

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

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

MAC

Coming soon..

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

Copyright © 2010 nov matake. See LICENSE for details.

Something went wrong with that request. Please try again.