Sha256: 773c487c64e909c160b250542481fe1f6d6d5d0199b65a151b2d03be45506956

Contents?: true

Size: 755 Bytes

Versions: 9

Compression:

Stored size: 755 Bytes

Contents

= 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
    

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oa-oauth-0.1.6 README.rdoc
oa-oauth-0.1.5 README.rdoc
oa-oauth-0.1.4 README.rdoc
oa-oauth-0.1.3 README.rdoc
oa-oauth-0.1.2 README.rdoc
oa-oauth-0.1.1 README.rdoc
oa-oauth-0.1.0 README.rdoc
oa-oauth-0.0.5 README.rdoc
oa-oauth-0.0.4 README.rdoc