How to resolve errors like "callbackParams of undefined" and "state mismatch" #386
Unanswered
johnnynanjiang
asked this question in
Q&A
Replies: 2 comments 3 replies
|
As far as I know the library does not hold state regarding the authentication flow. As long as you properly sync request state (e.g. |
0 replies
|
Thanks @svvac for the reply. Actually I'm not sure if it is the case or not, but according to my own spike and debugging, I could reproduce the 2 errors using different openid client instance for the same callback request. Also I had a question on stackoverflow, and some other folk confirmed my case. Can @panva please confirm or clarify? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi folks (cc @panva @svvac @madarche @sawyerh)
Is that correct to assume that the same
openIdClientinstance should be handling bothopenIdClient.authorizationUrl()andopenIdClient.callbackParams()for a particular authentication request.As I found out, it could be wrong, that if the instance is different between these 2 calls, then "callbackParams of undefined" and "state mismatch" errors could happen, especially in a multi-instance environment.
All reactions