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
Erik Michaels-Ober f6f7d5ef42 Merge pull request #378 from thickpaddy/master
Fixed - Invalid response when linked in user has no public profile url
2011-07-10 09:59:44 -07: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 Merge pull request #378 from thickpaddy/master 2011-07-10 09:59:44 -07:00
spec Merge pull request #385 from harrylove/master 2011-07-01 11:56:42 -07:00
.gemtest Gem dependency refactor 2011-04-22 02:52:52 -05:00
.rspec Made in America. 2011-04-22 02:37:29 -05:00
.yardopts Gem dependency refactor 2011-04-22 02:52:52 -05:00
Gemfile Allow bundling of unreleased versions of sub-gems 2011-06-28 19:17:40 -07:00
LICENSE Update licenses throughout the gems. 2011-01-05 09:53:29 -06:00
oa-oauth.gemspec Update evernote dependency to version 1.0 2011-06-28 19:19:02 -07:00
Rakefile Gem dependency refactor 2011-04-22 02:52:52 -05:00
README.rdoc Everything can now be initialized with a block instead of arguments. Closes #56 2010-11-29 12:59:20 -06: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, 'client_id', 'client_secret'
    end