omniauth/oa-basic
James A. Rosen 95e0e94f52 moved Campfire and Basecamp from HTTP Basic to OAuth2 2010-06-16 15:37:43 -04:00
..
dist/oa-basic-0.0.3 removed dist files -- no idea how those got in there 2010-06-13 16:58:06 -04:00
lib/omniauth moved Campfire and Basecamp from HTTP Basic to OAuth2 2010-06-16 15:37:43 -04:00
spec moved Campfire and Basecamp from HTTP Basic to OAuth2 2010-06-16 15:37:43 -04:00
.rspec added stub specs to oa-basic sub-project 2010-06-12 22:36:21 -04:00
CHANGELOG.rdoc READMEs and CHANGELOGs updated. 2010-05-01 15:22:25 -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 Adds lots of stuff. Facebook is broken, beware. 2010-04-09 21:30:16 -04:00
README.rdoc READMEs and CHANGELOGs updated. 2010-05-01 15:22:25 -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
oa-basic.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

README.rdoc

= OmniAuth::Basic

OmniAuth stratgies for APIs that have HTTP Basic authentication (such as Campfire and Basecamp).

== Installation

To get just HTTP Basic functionality:

    gem install oa-basic
    
For the full auth suite:

    gem install omniauth
    
== Stand-Alone Example

Use the strategy as a middleware in your application:

    require 'omniauth/basic'
    
    use OmniAuth::Strategies::Campfire
    
Then simply direct users to '/auth/campfire' to prompt them for their Campfire credentials. You may also pre-set the credentials by POSTing to the URL with appropriate parameters (in the case of Campfire and Basecamp, the parameters are <tt>subdomain</tt>, <tt>user</tt>, and <tt>password</tt>).

== OmniAuth Builder

If you want to allow multiple providers, use the OmniAuth Builder:

    require 'omniauth/basic'
    
    use OmniAuth::Builder do
      provider :campfire
      provider :basecamp
    end