omniauth--omniauth/oa-oauth
Michael Bleigh db46a2e540 Update licenses throughout the gems. 2011-01-05 09:53:29 -06:00
..
autotest Upgrade to RSpec 2.0, add universal options hash for strategies, custom paths, closes #54 2010-11-03 13:19:10 -05:00
lib/omniauth Reverts #123 due to it causing problems with OAuth 2 providers. This functionality can be provided via session storage, query saving is unnecessary. 2011-01-05 09:40:00 -06:00
spec Reverts #123 due to it causing problems with OAuth 2 providers. This functionality can be provided via session storage, query saving is unnecessary. 2011-01-05 09:40:00 -06:00
.rspec Upgrade to RSpec 2.0, add universal options hash for strategies, custom paths, closes #54 2010-11-03 13:19:10 -05:00
Gemfile Bundler's add_bundler_dependencies is considered harmful and being deprecated; changed from Gemfile -> .gemspec dependencies to the reverse. 2010-06-13 16:36:59 -04:00
LICENSE Update licenses throughout the gems. 2011-01-05 09:53:29 -06:00
README.rdoc Everything can now be initialized with a block instead of arguments. Closes #56 2010-11-29 12:59:20 -06:00
Rakefile Upgrade to RSpec 2.0, add universal options hash for strategies, custom paths, closes #54 2010-11-03 13:19:10 -05:00
oa-oauth.gemspec Raise oauth2 gem dependency version. Closes #70, Closes #71, Closes #72 2010-10-25 11:56:18 -05:00

README.rdoc

= 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, 'client_id', 'client_secret'
    end