Skip to content

Commit

Permalink
Merge pull request #1193 from AzureAD/remove-isangular-flag
Browse files Browse the repository at this point in the history
Remove isAngular flags for handling redirects
  • Loading branch information
jasonnutter committed Jan 14, 2020
2 parents 0babae4 + 4e497dd commit 1212c64
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/msal-core/src/UserAgentApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class UserAgentApplication {
WindowUtils.checkIfBackButtonIsPressed(this.cacheStorage);

// On the server 302 - Redirect, handle this
if (!this.config.framework.isAngular && urlContainsHash && !WindowUtils.isInIframe() && !WindowUtils.isInPopup()) {
if (urlContainsHash && !WindowUtils.isInIframe() && !WindowUtils.isInPopup()) {
this.handleAuthenticationResponse(urlHash);
}
}
Expand Down Expand Up @@ -269,11 +269,9 @@ export class UserAgentApplication {
this.redirectCallbacksSet = true;

// On the server 302 - Redirect, handle this
if (!this.config.framework.isAngular) {
const cachedHash = this.cacheStorage.getItem(TemporaryCacheKeys.URL_HASH);
if (cachedHash) {
this.processCallBack(cachedHash, null);
}
const cachedHash = this.cacheStorage.getItem(TemporaryCacheKeys.URL_HASH);
if (cachedHash) {
this.processCallBack(cachedHash, null);
}
}

Expand Down

0 comments on commit 1212c64

Please sign in to comment.