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

Remove sandboxing from hidden iframe, due to change in eSTS redirect #1053

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

jasonnutter
Copy link
Contributor

@jasonnutter jasonnutter commented Oct 16, 2019

STS now performs its redirects client-side in JavaScript, meaning we can no longer sandbox hidden iframes, as it will prevent the redirect from happening at all. Added code to immediately remove the iframe once we have the hash from the url, to mitigate MSAL code rerunning in the iframe (this is similar to what we do for popups, which we also can't sandbox).

Also removed ES6 JS that wasn't working in IE11 and replaced with ES5 code.

Copy link
Member

@sameerag sameerag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@DarylThayil DarylThayil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added some small questions but lgtm

@jasonnutter jasonnutter merged commit 310f0b5 into dev Oct 17, 2019
@sameerag sameerag deleted the remove-iframe-sandbox branch October 6, 2021 16:11
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