goofrider / testoauth2client

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:Ruby 98.3%Language:Perl 1.4%Language:Shell 0.3%