Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chandra956 opened this issue Sep 1, 2022 · 0 comments

Comments

@chandra956
Copy link

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');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant