Last active
July 10, 2019 08:29
-
-
Save athiththan11/9c1c2fa4a7948ae1b320cde8c089c7cb to your computer and use it in GitHub Desktop.
A sample passport-saml configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var passport = require('passport'); | |
var saml = require('passport-saml').Strategy; | |
// saml strategy for passport | |
var strategy = new saml( | |
{ | |
entryPoint: <provide SAML entry point url : https://localhost:9443/samlsso>, | |
issuer: <provide SAML issuer name : SampleExpressApp>, | |
protocol: <provide the protocol used : http://>, | |
logoutUrl: <provide the logout url : https://localhost:9443/samlsso> | |
}, | |
(profile, done) => { | |
// your body implementation on success | |
} | |
); | |
// register the strategy with passport | |
passport.use(strategy); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment