@indigina/kendo 2.0.21 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2077,10 +2077,10 @@ class AzureLoginCallbackComponent {
|
|
|
2077
2077
|
this.router.navigate(['home']);
|
|
2078
2078
|
}
|
|
2079
2079
|
});
|
|
2080
|
-
this.msalBroadcastService.msalSubject$.pipe(filter(({ eventType }) => eventType === EventType.ACQUIRE_TOKEN_FAILURE
|
|
2080
|
+
this.msalBroadcastService.msalSubject$.pipe(filter(({ eventType }) => eventType === EventType.ACQUIRE_TOKEN_FAILURE)).subscribe(() => this.authService.logoutRedirect());
|
|
2081
2081
|
}
|
|
2082
2082
|
logout() {
|
|
2083
|
-
this.authService.
|
|
2083
|
+
this.authService.logoutRedirect();
|
|
2084
2084
|
}
|
|
2085
2085
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AzureLoginCallbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2086
2086
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: AzureLoginCallbackComponent, isStandalone: true, selector: "lib-azure-login", ngImport: i0, template: '', isInline: true }); }
|
|
@@ -2093,8 +2093,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
2093
2093
|
}]
|
|
2094
2094
|
}] });
|
|
2095
2095
|
|
|
2096
|
-
const isIE = window.navigator.userAgent.includes('MSIE ') ||
|
|
2097
|
-
window.navigator.userAgent.includes('Trident/');
|
|
2098
2096
|
const MSALInstanceFactory = (config) => {
|
|
2099
2097
|
const defaultRedirectUri = `${window.location.origin}/azure/login/callback`;
|
|
2100
2098
|
const msalConfig = {
|
|
@@ -2104,11 +2102,9 @@ const MSALInstanceFactory = (config) => {
|
|
|
2104
2102
|
knownAuthorities: config.appSettings.azureB2C.knownAuthorities,
|
|
2105
2103
|
redirectUri: config.appSettings.azureB2C.redirectUri || defaultRedirectUri,
|
|
2106
2104
|
postLogoutRedirectUri: config.appSettings.azureB2C.logoutRedirectUri || window.location.origin,
|
|
2107
|
-
navigateToLoginRequestUrl: false,
|
|
2108
2105
|
},
|
|
2109
2106
|
cache: {
|
|
2110
2107
|
cacheLocation: BrowserCacheLocation.LocalStorage,
|
|
2111
|
-
storeAuthStateInCookie: isIE,
|
|
2112
2108
|
},
|
|
2113
2109
|
system: {
|
|
2114
2110
|
loggerOptions: {
|