Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

Define application keys for Passport.js integration. Currently supporting Github, Twitter, Facebook, and Google.


Full Example

You can find more information about each strategy and about the above variables in the official documentation of Passport.js strategies.


Passport Login Object
"passportLogin": {
  "twitter": {
     "clientID": "TWITTER_CLIENT_ID",
     "clientSecret": "TWITTER_CLIENT_SECRET",
     "callbackURL": "http://local-widget.com/urac/login/success"
  },
  "facebook": {
     "clientID": 'FACEBOOK_CLIENT_ID',
     "clientSecret": 'FACEBOOK_CLIENT_SECRET',
     "callbackURL": "http://local-widget.com/urac/login/success?mode=facebook"
  },
  "google": {
     "clientID": 'GOOGLE_CLIENT_ID',
     "clientSecret": 'GOOGLE_CLIENT_SECRET',
     "callbackURL": "http://local-widget.com/urac/login/success"
  },
  "github": {
      "clientID": "GITHUB_CLIENT_ID",
      "clientSecret": "GITHUB_CLIENT_SECRET",
      "callbackURL": "http://127.0.0.1:3000/auth/github/callback"
  }
}



  • No labels