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

Fix oidc callback to check entire storage (#7929) #8169

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

Monkeychip
Copy link
Contributor

Backport for #7929 which, fixes oidc callback to check the entire storage.

* Fix oidc callback to check entire storage

In some cases, extensions or other unexpected javascript can be executed
on the oidc callback. Sometimes changing the localstorage and generating
a `storage` event before the callback component does. In such cases, the
authorization component will hang indefinitely.

A simple fix is to check for the expected `oidcState` key in the whole
localstorage instead of just the event `key`.

* Fix tests for auth-jwt

Co-authored-by: Angel Garbarino <[email protected]>
@Monkeychip Monkeychip merged commit 467fef6 into release/1.3.x Jan 16, 2020
@Monkeychip Monkeychip deleted the backport-pr-7929-1.3.x branch January 16, 2020 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants