omniauth/oa-oauth
Michael Bleigh 86862ea95d Bumping version to 0.1.1 2010-10-04 13:33:56 -05:00
..
lib/omniauth Cleanup of a few small things. 2010-10-04 10:12:16 -05:00
spec added 'WebMock.disable_net_connect' to all spec_helpers 2010-08-11 08:50:20 -07: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
Gemfile.lock Bumping version to 0.1.1 2010-10-04 13:33:56 -05:00
LICENSE.rdoc Added gemspecs for gempack setup, each should now be generatable. 2010-04-05 01:20:34 -04:00
README.rdoc fixed typo in OAuth README; s/openid/oauth 2010-06-12 17:16:04 -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
VERSION misc small adjustments to get the gems to install 2010-06-09 13:48:55 -04:00
oa-oauth.gemspec Moved 37signals into a single OAuth2 class. 2010-06-23 20:15:43 -04: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, 'app_id', 'app_secret'
    end