Sha256: 374f93385b65f4069492260dab8e3ef638d3dc4da92bf081f68652eed916a89d

Contents?: true

Size: 923 Bytes

Versions: 26

Compression:

Stored size: 923 Bytes

Contents

= 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

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
oa-basic-0.3.2 README.rdoc
oa-basic-0.3.0 README.rdoc
oa-basic-0.3.0.rc3 README.rdoc
omniauth-0.2.6 oa-basic/README.rdoc
oa-basic-0.2.6 README.rdoc
omniauth-0.2.5 oa-basic/README.rdoc
oa-basic-0.2.5 README.rdoc
oa-basic-0.2.4 README.rdoc
oa-basic-0.2.3 README.rdoc
oa-basic-0.2.2 README.rdoc
oa-basic-0.2.1 README.rdoc
oa-basic-0.2.0 README.rdoc
oa-basic-0.2.0.beta5 README.rdoc
oa-basic-0.2.0.beta4 README.rdoc
oa-basic-0.2.0.beta3 README.rdoc
oa-basic-0.2.0.beta2 README.rdoc
oa-basic-0.2.0.beta1 README.rdoc
oa-basic-0.1.6 README.rdoc
oa-basic-0.1.5 README.rdoc
oa-basic-0.1.4 README.rdoc