Git Product home page Git Product logo

oauth2's Introduction

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

oauth2's People

Contributors

rsbarbo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.