-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
UI/fix safari oidc login #11884
UI/fix safari oidc login #11884
Conversation
}); | ||
|
||
test('oidc: storage event fires with state key, wrong params', async function(assert) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this test because we don't fire en event
@@ -55,7 +55,7 @@ | |||
@roleName={{this.roleName}} | |||
@selectedAuthType={{this.selectedAuthBackend.type}} | |||
@selectedAuthPath={{or this.customPath this.selectedAuthBackend.id}} | |||
@disabled={{authenticate.isRunning}} | |||
@disabled={{or authenticate.isRunning this.isLoading}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this because once the popup is closed, while things are processing but before authenticate runs, the button is clickable again and it was confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good! Two comments: changelog and I just want to confirm that this works fine on other browsers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* use window.postMessage instead of localStorage on oidc callback
* use window.postMessage instead of localStorage on oidc callback
Due to a Safari localStorage bug, logging into Vault with OIDC was not working because the login tab never saw the
localStorage
write from the popup tab. To resolve, we are replacinglocalStorage
in this scenario with a postMessage call between the two tabs.Before:
After: