Redirect loop with wrong client credentials #465
Unanswered
louis-vinchon
asked this question in
Q&A
Replies: 1 comment
-
The strategy does nothing of the sort "on its own". It merely passes control back to passport either via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a server set up to use OIDC with a Keycloak instance: I have passport + openid-client and it's working fine when the client id and client secrets are correct.
However the other day I had an incorrect client secret, and login in my server caused some weird redirect loop which was difficult to debug.
The gist of it is: If the credentials are wrong, the openid-client strategy will return 302s "on its own" (the verify callback never gets called) and causes that redirection loop.
My questions:
If there is no custom callback to control openid-client's response, should I make some kind of wrapper straategy to handle it?
Beta Was this translation helpful? Give feedback.
All reactions