oauth2

Rails Authentication with OAuth 2.0 and OmniAuth

0
0
Ruby

Rails Authentication with OAuth 2.0 and OmniAuth

WIP đź‘·

The goal is to create an application able to perform authentication via social
networks with the help of the OAuth 2 protocol.

Here is a simple overview of what the application will perform when a user visits
the application homepage and tries to authenticate with a social network:

  1. User clicks “Login” link.
  2. User is redirected to the social network’s website. The application data (client_id) are sent along for identification.
  3. User sees the application details (like name, logo, description, and any additional data needed) and which actions it would like to perform on its behalf (the scope).
  4. If the user does not trust the application, they will cancel the authorization.
  5. If the user trusts the application, the authorization is approved and the user is redirected back to the application(via callback URL).

Important Information

  1. Right the application work with Twitter only (will eventually implement with additional social networks)
  2. Clone the repo down git clone https://github.com/rsbarbo/oauth2.git
  3. Run bundle install
  4. Run rake db:setup
  5. Start a local server with rails server
  6. Visit your localhost page http://localhost:3000/
  7. Have some fun with this silly app

Raphael Barbo