You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement the SAML passport login, but I need to read the XML file containing the metadata received from my identity provider. How can I do this?
this is my code: passport.use( new SamlStrategy( { path: '/login/callback', entryPoint: "/metadata.xml", issuer: 'passport-saml', protocol: "http://", cert: 'fake cert', // cert must be provided logoutUrl: "/ " }, function(profile, done) { findByEmail(profile.email, function(err, user) { if (err) { return done(err); } return done(null, user); }); } ) )
I could not find in the documentation exactly how to do this...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to implement the SAML passport login, but I need to read the XML file containing the metadata received from my identity provider. How can I do this?
this is my code:
passport.use( new SamlStrategy( { path: '/login/callback', entryPoint: "/metadata.xml", issuer: 'passport-saml', protocol: "http://", cert: 'fake cert', // cert must be provided logoutUrl: "/ " }, function(profile, done) { findByEmail(profile.email, function(err, user) { if (err) { return done(err); } return done(null, user); }); } ) )
I could not find in the documentation exactly how to do this...
Beta Was this translation helpful? Give feedback.
All reactions