GithubHelp home page GithubHelp logo

spencerdossett / sorcery-oauth-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fgelsomini/sorcery-oauth-example

0.0 1.0 0.0 138 KB

Ruby 82.80% JavaScript 1.29% CoffeeScript 0.83% CSS 2.03% HTML 13.05%

sorcery-oauth-example's Introduction

README

This app is an example of using Sorcery to provide basic authentication & sign up for your app, and using the external module within Sorcery to add provider-specific authentications (i.e. Twitter, Google). This app also assumes you do NOT need Sorcery to login or sign up to your app from any provider.

After a normal user login, the app will prompt the user to authenticate with Twitter or Google, and save an oauth access token for future use of the API’s. Bear in mind, each API will handle access differently. For example, during the OAuth process, Twitter issues an access token which does not expire. Google’s access token however, will expire after 60 minutes, requiring you to use a “refresh token” to regain access.

Notes:

  • Be sure to the application and appropriate settings in Twitter or Google developer area

  • Before going into production, you should encrypt the access tokens

sorcery-oauth-example's People

Contributors

fgelsomini avatar

Watchers

 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.