-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add classname to silent token renewal iframe HTML Element #6960
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
Conversation
const authFrame = document.createElement("iframe"); | ||
|
||
authFrame.className = "silentTokenRenewalIframe"; | ||
authFrame.src = urlNavigate; |
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.
Is there a reason why we did not do this before? @tnorling any browser policy issues we need to worry about?
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.
There was a limitation in some older browsers, namely IE11, that affected iframe creation. To workaround we allowed applications to configure whether the src attribute should be assigned synchronously or asynchronously - we can likely remove that configuration in v4 but we'll need to keep the existing model in v3 to avoid a change in behavior here
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.
Noted, thanks!
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.
That is what I was wondering. @lalimasharda let us stick to className
for now to unblock Dime.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
*This pull request uses carry forward flags. Click here to find out more.
|
|
||
setTimeout(() => { | ||
if (!frameHandle) { | ||
reject("Unable to load iframe"); | ||
return; | ||
} | ||
|
||
frameHandle.src = urlNavigate; |
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.
This is a breaking change and needs to wait for v4 - can you file a work item if one doesn't exist?
const authFrame = document.createElement("iframe"); | ||
|
||
authFrame.className = "silentTokenRenewalIframe"; |
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.
Curious why this is needed?
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.
Bing is blocking Dime ssoSilent
on 2.x (pre-broker). They want a classname to get an exception.
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.
I see...interesting. Should we include "msal" in the name somewhere?
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.
Not a bad idea, @lalimasharda can we do that, say msalSilentIframe
Porting change from v2 PR: #6960
No description provided.