Skip to content
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

Handle State encoding issue inbound from Provider #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasonatepaint
Copy link

This fix updates SessionStore.verify to convert whitespace into the + character.

This is to resolve an issue with the way AWS Cognito returns the state on the querystring. Cognito does not properly encode the + char to %2B. This causes the query string state to become a whitespace char. The failure occurs when the verify function does an equality check against inbound query string state and the session state.

example:

inbound query string state : asd hfds j
original session state : asd+hfds+j

…character. This is to resolve an issue with the way AWS Cognito returns the state on the querystring. Cognito does not properly encode the `+` char to `%2B`, which turns into a whitespace char inbound to the Strategy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant