Skip to content

PassportJS SAML example updated for testing Salesforce as an IDP

Notifications You must be signed in to change notification settings

CarlWeiss/passport-saml-example

 
 

Repository files navigation

PassportJS SAML example

Description

An example to demonstrate the use of the Passport-SAML Authentication provider for PassportJS linked to a SF IDP.

Setup

$ npm install
$ bower install
$ npm start

Changes Update passport.js to extend the user object to display data

Salesforce Configuration Steps:

  1. Setup SF as an IDP
  2. Create a connected APP
  3. Create an .env file based on the .SMAPLE_ENV template
  4. Connected APP SAML cofiguration
  5. Authorize users to connect to the app
  6. Configure any custom attributes under the Connected App
  7. Extend the passport.js object to view the extended data.

License

Licensed under the MIT license

Note

Based on PassportJS-Authentication by Danial Khosravi and (http://gbraad.nl "Gerard Braad me@gbraad.nl")

About

PassportJS SAML example updated for testing Salesforce as an IDP

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 77.9%
  • Pug 22.1%