Skip to content

Commit

Permalink
Merge pull request #4895 from AzureAD/redirect-iframe-error-message-b…
Browse files Browse the repository at this point in the history
…roker

Redirect iframe error message broker
  • Loading branch information
sameerag authored Jun 13, 2022
2 parents 2501bd7 + 83877c2 commit e325d87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Update redirect_in_iframe message to include messaging for embedded applications #4895",
"packageName": "@azure/msal-browser",
"email": "janutter@microsoft.com",
"dependentChangeType": "patch"
}
4 changes: 2 additions & 2 deletions lib/msal-browser/src/error/BrowserAuthError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const BrowserAuthErrorMessage = {
},
redirectInIframeError: {
code: "redirect_in_iframe",
desc: "Code flow is not supported inside an iframe. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."
desc: "Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."
},
blockTokenRequestsInHiddenIframeError: {
code: "block_iframe_reload",
Expand Down Expand Up @@ -319,7 +319,7 @@ export class BrowserAuthError extends AuthError {
}

/**
* Creates an error thrown when navigateWindow is called inside an iframe.
* Creates an error thrown when navigateWindow is called inside an iframe or brokered applications.
* @param windowParentCheck
*/
static createRedirectInIframeError(windowParentCheck: boolean): BrowserAuthError {
Expand Down

0 comments on commit e325d87

Please sign in to comment.