A sample OAuth 2 Client application using Rails 3.2 and OmniAuth 1.0
Ruby Perl Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

OAuth 2 Client Test Application

A sample OAuth 2 Client application using Rails 3.2 and OmniAuth 1.0

Heavily based on http://railscasts.com/episodes/241-simple-omniauth

Apps & Gems sources

Live Applications

Testing in local

To test it in local, you will need to register the new client application on the provider application like follow

Devise::Oauth2Providable::Client.create(
  :name => 'Test App',
  :redirect_uri => 'http://0.0.0.0:3000/auth/testoauth2strategy/callback',
  :website => 'http://0.0.0.0:3000'
)

You will then need to use the generated identifier and secret in the client application's omniauth initializer.