-
Notifications
You must be signed in to change notification settings - Fork 12
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
Session states do not match exception #82
Comments
If you are running multi-threaded/multi-instance, you will need to set the session secrets as env vars so they are consistent e.g. across functions |
See fastapi_aad_auth/src/fastapi_aad_auth/config.py Lines 99 to 109 in 4089ca0
|
Thanks, that's solved the problem :) I'll see if I can find an appropriate place to put this in the docs and do a PR. |
It's in https://djpugh.github.io/fastapi_aad_auth/module/fastapi_aad_auth.config.html, but suggest putting into |
I've run into a strange problem where I'm suddenly getting a
Session states do not match
error when trying to login in my app using fastapi_aad_auth. Everything was working fine and then I suddenly started getting this error, and I'm pretty sure I haven't changed anything.I can see that the error is raised from state.py, line 91:
fastapi_aad_auth/src/fastapi_aad_auth/_base/state.py
Line 91 in 4089ca0
Are you able to provide any information on why there might be a mismatch in session states occurring here? I've tried this on two different computers with two different AAD logins, and it is occurring in both situations. I've tried running locally and it is working fine, so I'm only running into the error on the version that is hosted on Azure. I've tried restarting the Azure Functions app, and that hasn't solved it.
Also, on a different note: my boss has just pointed out that I'm working for the same company as you! I'm working with Sam Murphy.
The text was updated successfully, but these errors were encountered: