1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00
omniauth--omniauth/oa-oauth
2010-06-12 21:29:31 -04:00
..
lib/omniauth OAuth 2.0 support, including Facebook and GitHub providers. 2010-04-29 16:54:07 -04:00
spec changed Rack endpoint in OAuth spec to return an enumerable body as per the Rack specification 2010-06-12 21:26:06 -04:00
CHANGELOG.rdoc Added gemspecs for gempack setup, each should now be generatable. 2010-04-05 01:20:34 -04:00
LICENSE.rdoc Added gemspecs for gempack setup, each should now be generatable. 2010-04-05 01:20:34 -04:00
oa-oauth.gemspec Versioning will now be lockstep, bumped to 0.0.3 2010-05-01 15:07:56 -04:00
Rakefile using Bundler to declare dependencies 2010-06-12 21:29:31 -04:00
README.rdoc fixed typo in OAuth README; s/openid/oauth 2010-06-12 17:16:04 -04:00
VERSION misc small adjustments to get the gems to install 2010-06-09 13:48:55 -04:00

= OmniAuth::OAuth

OAuth 1.0 and 2.0 strategies for the OmniAuth gem.

== Installation

To get just OAuth functionality:

    gem install oa-oauth
    
For the full auth suite:

    gem install omniauth
    
== Stand-Alone Example

Use the strategy as a middleware in your application:

    require 'omniauth/oauth'
    
    use OmniAuth::Strategies::Twitter, 'consumer_key', 'consumer_secret'
    
Then simply direct users to '/auth/twitter' to have them authenticate via Twitter.

== OmniAuth Builder

If you want to allow multiple providers, use the OmniAuth Builder:

    require 'omniauth/oauth'
    
    use OmniAuth::Builder do
      provider :twitter, 'consumer_key', 'consumer_secret'
      provider :facebook, 'app_id', 'app_secret'
    end