Skip to content

App crash #219

@iBat

Description

@iBat

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions