Skip to content

sb-archive/omniauth-rootsrated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OmniAuth RootsRated  Build Status

These notes are based on master, please see tags for README pertaining to specific releases.

RootsRated OAuth2 Strategy for OmniAuth.

Supports the OAuth 2.0 server-side and client-side flows.

Installing

Add to your Gemfile:

gem 'omniauth-rootsrated'

Then bundle install.

Usage

OmniAuth::Strategies::RootsRated is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.

Here's a quick example, adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :rootsrated, ENV['ROOTSRATED_KEY'], ENV['ROOTSRATED_SECRET']
end

Auth Hash

request.env['omniauth.auth'] contains the response Auth Hash from RootsRated.

Supported Rubies

Actively tested with the following Ruby versions:

  • MRI 2.1.0
  • MRI 2.0.0
  • MRI 1.9.3
  • MRI 1.9.2
  • MRI 1.8.7
  • JRuby 1.7.9
  • Rubinius (latest stable)

Bitdeli Badge