passport icon indicating copy to clipboard operation
passport copied to clipboard

passport-saml authentication throws Error: Request failed with status code 404 after upgrading passport from version 0.5.3 to 0.6.0

Open chandra956 opened this issue 2 years ago • 0 comments

using passport-saml version 3.2.1 after ugrading passportjs from 0.5.3 to 0.6.0 passport authentication throws Error: Request failed with status code 404 saml strategy is also same as I used for 0.5.3

I am trying to call below request router.post('auth/saml', this.passport.authenticate('saml', {failureRedirect:'/login', keepSessionInfo:true}), this.signInCallback.bind(this));

and below is my signInCallback function private async _signInCallback( req: express.Request, res: express.Response, next: express.NextFunction, ): Promise<express.Response | void> { res.redirect('/user/profile'); }

chandra956 avatar Sep 01 '22 14:09 chandra956