...
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 strategiesPassport Azure authentication strategy using OAuth 2.0
Configuration sample object
Below is a configuration sample that is needed for the Facebook strategy to be configured. Follow the steps below the sample to get those configurations.
Code Block | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
"passportLoginfacebook": { "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" } clientID: '%client_ID%', clientSecret: '%client_secret%', callbackURL: '%client_callback%', //optional useCommonEndpoint: 'https://login.microsoftonline.com/jh6trd45-uh87-ki87-hgt6-jhyf65esdfty', tenant: "%tenant_name%.onmicrosoft.com", resource: "00000002-0000-0000-c000-000000000000" } |