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

Redirect loop when using passport strategy with hybrid flow #194

Closed
naveddeshmukh opened this issue Oct 10, 2019 · 1 comment
Closed

Redirect loop when using passport strategy with hybrid flow #194

naveddeshmukh opened this issue Oct 10, 2019 · 1 comment

Comments

@naveddeshmukh
Copy link

On Login Callback, the passport.authenticate middleware redirects back to IdP which in turn creates a loop.

I'm currently using openid-client's passport strategy with express js to implement a relying party. The RP needs to authenticate a user and also requires access tokens to make API callbacks.

Sample Repository: https://github.com/naveddeshmukh/openid-client-hybrid-flow

Line Reference for passport authenticate middleware.
https://github.com/naveddeshmukh/openid-client-hybrid-flow/blob/4d709ffb158434b9c639ae85fea59c7dd38bba05/server.js#L112

@panva
Copy link
Owner

panva commented Oct 10, 2019

#39 (comment)

@panva panva closed this as completed Oct 10, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants