Skip to content

rvdwijngaard/loopback-example-passport

 
 

Repository files navigation

loopback-example-passport

LoopBack example for loopback-passport module. It demonstrates how to use LoopBack's user/userIdentity/userCredential models and passport to interact with other auth providers.

  • Log in or sign up to LoopBack using third party providers (aka social logins)
  • Link third party accounts with a LoopBack user (for example, a LoopBack user can have associated facebook/goole accounts to retrieve pictures).

How to run the application

git clone [email protected]:strongloop-community/loopback-example-passport.git
cd loopback-example-passport
npm install

Get your client ids/secrets from facebook & google

Create providers.json

  • Copy providers.json.template to providers.json
  • Update providers.json with your own values for clientID/clientSecret

Run the application

node app

Open your browser to http://127.0.0.1:3000

About

LoopBack example for facebook login

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%