Skip to content
Advertisement

Tag: saml

Node + Passport, Error: Authentication strategies must have a name

I’m trying to initialize a SAML strategy during the require line. Something like this: but am getting the error: or TypeError: Cannot read property ‘name’ of undefined at Authenticator.use if a custom strategy name is not defined: passport.use(myStrat); . I’ve had it like this (which works): but I wish to change it because I need to call passport-saml’s Stragety.generateServiceProviderMetadata() function

Advertisement