Skip to content

rsbarbo/oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rails Authentication with OAuth 2.0 and OmniAuth

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published