-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Hi,
In some conditions my app crashes with this message:
TypeError: undefined is not a function
at Strategy.strategy.error (/usr/lib/node_modules/passport/lib/middleware/authenticate.js:332:9)
at /usr/lib/node_modules/passport-openid/lib/passport-openid/strategy.js:184:30
at _verifyAssertionData (/usr/lib/node_modules/passport-openid/node_modules/openid/openid.js:1053:12)
at Object.openid.verifyAssertion (/usr/lib/node_modules/passport-openid/node_modules/openid/openid.js:1046:10)
at openid.RelyingParty.verifyAssertion (/usr/lib/node_modules/passport-openid/node_modules/openid/openid.js:59:10)
at Strategy.authenticate (/usr/lib/node_modules/passport-openid/lib/passport-openid/strategy.js:183:24)
at attempt (/usr/lib/node_modules/passport/lib/middleware/authenticate.js:337:16)
at authenticate (/usr/lib/node_modules/passport/lib/middleware/authenticate.js:338:7)
at Object.exports.checkSimple (/xvm/xvm-icons/controllers/authController.js:57:7)
at callbacks (/usr/lib/node_modules/express/lib/router/index.js:164:37)
where authController.js:57:7 is
exports.checkSimple = function(req, res) {
passport.authenticate('openid', {
successRedirect: req.session.returnURL,
failureRedirect: req.session.returnURL
})(req, res);
};Are there any ideas how to fix it?
Metadata
Metadata
Assignees
Labels
No labels