Skip to content

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.
@maconard
Copy link

maconard commented Mar 4, 2025

Bump to the repo maintainers! Would love to see this fix integrated to an official openidconnect version, so I don't have to reference a custom fork.

@selvavalluvan
Copy link

@jaredhanson Please merge this.

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.

3 participants