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-18 21:09:27 -04:00
..
lib/omniauth fixed and tested Basecamp OAuth2 implementation 2010-06-18 21:09:27 -04:00
spec fixed and tested Basecamp OAuth2 implementation 2010-06-18 21:09:27 -04:00
.rspec moved project spec/spec.opts to .rspec in preparation for RSpec 2.0 (deprecated in 1.3) 2010-06-12 21:34:19 -04:00
CHANGELOG.rdoc Added gemspecs for gempack setup, each should now be generatable. 2010-04-05 01:20:34 -04: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.rdoc Added gemspecs for gempack setup, each should now be generatable. 2010-04-05 01:20:34 -04:00
oa-oauth.gemspec changed from 'json' to 'multi_json' dependency so clients of Omniauth can use any JSON library they want 2010-06-13 17:00:37 -04:00
Rakefile 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
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