-
Notifications
You must be signed in to change notification settings - Fork 141
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
state mismatch error #170
Comments
I am running into this issue as well - is there any workaround? Is this related? |
Any idea? |
These are base64 encoded, the state mismatch looks like: |
Also, if you're running your server over |
@adamjmcgrath my issue is not related to https, because my server works with https. Not really, the issue is related to state cookie generated by oidc-express because some times is null. I understand the cookie is generated as a CSRF Token. I'm not sure, but I have one file on my project that sometimes makes a 404 request /manifest.json. Maybe this fail request is clearing my cookie. |
I am also seeing this error "BadRequestError: checks.state argument is missing" intermittently if I use google login. No state mismatch error for me though. |
@Anexsoft - if you're running your server on @appagg - can you take a look at #145 (comment) |
Uhmm I replaced all the packages by passport and oidc-client and it's working as I expected :). Of course, it's a litle bit more difficult to config. |
ok - thanks @Anexsoft - if you want to persevere with getting your setup working with |
State mismatch
I'm having this error on my second attempt of login. After my token expired (24h), the APP redirects my user to the login screen (another service) and when it makes a successful login, it redirect my user to my APP giving this kind of errors:
Sometimes is error 1 or 2.
But despite this error, if the user goes to the home page he sees that he is logged in and he can starts use the APP.
This error gives a bad user experience.
What was the expected behavior?
Avoid the error page on callback page.
Reproduction
We are using Node JS with ** Express 4.17.1 **, everything works well except for the lines discussed above.
It seems that the issue is reproduced by transientHandler.js, exactly on the next lines:
The value comes undefined and for that reason the APP makes an exception related to state mismatch.
Environment
Our OIDC configuration
The text was updated successfully, but these errors were encountered: