Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails3 engine integrating OAuth2 authentication with Devise

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
spec
.gitignore
.rspec
CONTRIBUTORS.txt
Gemfile
LICENSE.txt
README.md
Rakefile
devise_oauth2_providable.gemspec

README.md

devise_oauth2_token_bearer_authenticatable

Support OAuth2 authentication for your API.

http://tools.ietf.org/html/draft-ietf-oauth-v2-15

Installation

# Bundler Gemfile
gem 'oauth2_token_bearer_authenticatable'
# create new Rails migration
class CreateOauth2Schema < ActiveRecord::Migration
  def self.up
    Devise::Oauth2TokenBearerAuthenticatable::Schema.up(self)
  end
  def self.down
    Devise::Oauth2TokenBearerAuthenticatable::Schema.down(self)
  end
end

Usage

class User
  devise :database_authenticatable, :oauth2_token_bearer_authenticatable
end

Contributing

  • Fork the project
  • Fix the issue
  • Add unit tests
  • Submit pull request on github

See CONTRIBUTORS.txt for list of project contributors

Copyright

Copyright (c) 2011 Socialcast, Inc. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.