10000 Parse callback URL reliable by twobiers · Pull Request #86 · keycloak/keycloak-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Parse callback URL reliable #86

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

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

Conversation

twobiers
Copy link

This PR partially addresses #85 by parsing the redirect params more reliable and remove them from the window location.

With this change in place the state parameter is not required to properly parse the redirect params and remove them from the window location.
The state is still required for a successful authorization flow, so if the state is not present, keycloak-js will remove the parameters but doesn't treat it as valid.

That would fix the issue in our particular context where the WAF is blocking the second login attempt due to double encoding

Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
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
0