Giter Site home page Giter Site logo

udu-loopback-passport-defunct's Introduction

#udu's Implementation of Passport for Loopback



##Google:

##Facebook:

##Twitter:

  • Needs Passport Code Written. Currently requires sessions because there is not an OAuth2 Passport module for Twitter. Since we don't use sessions, we'll just have to write that module (since Twitter does support OAuth2) and we'll have Twitter as well.

Overview of process with Passport provider (Google as example):

###User clicks on 'Login to Google' link -> /auth/google -> google's site -> /auth/google/callback with infos -> Is there a user with this account? Great, give them an access token -> No? Create an account with this info and then give them an access token.


##Details of main-api backend after /auth/provider/callback:

###User comes from Passport -> search for email in contacts -> If found: -> Has provider+providerToken? -> Update token if not matching -> Login >>>>> POST back auth token -> No provider+providerToken? -> Add provider+providerToken -> Login >>>>> POST back auth token If not found: -> Create account with info provided (Contacts arr created with provider+providerToken) -> Login >>>>> POST back auth token

udu-loopback-passport-defunct's People

Contributors

uduinc avatar geoffcorey avatar

Stargazers

Brad Pillow avatar

Watchers

 avatar James Cloos 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.