oauth2-ruby is an implementation of the current OAuth2 draft in Ruby released under the MIT license. The project at the moment consists of three seperate packages: oauth2-core, oauth2-server and oauth2-client - the latter will be available soon.
Disclaimer: As this is alpha software, it is suspected to change and considered unstable.
- makes parsing, validating and building Authorization and WWW-Authenticate headers easy
- implements OAuth2::Attributes which gives the possibility to set an attribute via callback (blocks), accessor or passing a hash on object initialization. This ensures that the library is very flexible.
- provides different flows according to the OAuth2 specification. Currently, only the web server flow is implemented.
- makes handling OAuth2 requests easy. It currently supports bearer and cryptographic requests.
The wiki features some examples.