-
Notifications
You must be signed in to change notification settings - Fork 329
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
Invalid session state (not "secure" related) #115
Comments
Immediately after the above message there is another one which shows that the plus sign have been provided in the referer string as properly urlencoded string:
What can be easily checked here: https://www.urldecoder.org/ |
@michal-rybinski could you please upgrade to |
Unfortunately it is still there... |
and I did pull and build the newest version: `# git pull
go get ./...go get: no install location for directory /1/vouch-proxy outside GOPATH go build#` |
What's at Your build is looking for packages at Please do not push logs and config to gh issues. Please use hastebin as per these instructions from the README... |
sorry about not using hastebin, I've fixed the post now. I've done some more testing and it looks like it is fixed, as I haven't noticed any "+" signs in the generated sesion state variables so subsequently no problems with decode/encode on them. Thanks for your help! |
Oh I'm so glad to hear that. Yeah go is a bit too opinionated on this aspect of build imho. |
@michal-rybinski would you be able to comment on the setup in #105 ? I'm not familiar with AWS Cognito's config. |
Hi all,
I've set up a vouch in front of my services and are using AWS Cognito as an oath2 provider.
I managed to get it working with Benjamin's help and all works as expected, but from time to time I am encountering an "Invalid session state" issue which by the looks of it points to either unicode encode/decode problem or something else that is dealing with extracting data from cookies on the vouch side. This is the log entry that appears when the problem surfaces and it is quite clear that the problem is with comparison of session variable stored locally and received from cookie:
{"level":"error","ts":1556534349.1250064,"msg":"Invalid session state: stored NHEDnfUelEV/FUfe4gajRJUptDzdG3cH/+tvaBp0YNs=, returned NHEDnfUelEV/FUfe4gajRJUptDzdG3cH/ tvaBp0YNs="}
every time there is a "+" sign generated in session state variable, it is being converted to a space or deleted from returned session state variable what cases the evaluation to fail and presentation of the mentioned above error.
Has someone else encountered this problem as well?
Thanks,
Michal
The text was updated successfully, but these errors were encountered: