Skip to content

Instantly share code, notes, and snippets.

@athiththan11
Last active July 10, 2019 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athiththan11/9c1c2fa4a7948ae1b320cde8c089c7cb to your computer and use it in GitHub Desktop.
Save athiththan11/9c1c2fa4a7948ae1b320cde8c089c7cb to your computer and use it in GitHub Desktop.
A sample passport-saml configuration
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