@indigina/kendo 1.2.7 → 1.2.9
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.
- package/esm2020/lib/angular/indigina.module.mjs +1 -6
- package/esm2020/lib/angular/models/AppSettings.mjs +1 -1
- package/esm2020/lib/angular/services/settings.service.mjs +4 -1
- package/esm2020/lib/services/auth.providers/azureb2c.provider.mjs +2 -1
- package/esm2020/lib/services/permissions.service.mjs +2 -2
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/indigina-kendo.mjs +5 -6
- package/fesm2015/indigina-kendo.mjs.map +1 -1
- package/fesm2020/indigina-kendo.mjs +5 -6
- package/fesm2020/indigina-kendo.mjs.map +1 -1
- package/lib/angular/models/AppSettings.d.ts +0 -2
- package/lib/angular/services/settings.service.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2020/lib/models/OidcSettings.mjs +0 -2
- package/lib/models/OidcSettings.d.ts +0 -5
|
@@ -858,11 +858,6 @@ let defaultConfig = {
|
|
|
858
858
|
accountUrl: '',
|
|
859
859
|
apiUrl: '',
|
|
860
860
|
toastrTimeOut: 2500,
|
|
861
|
-
oidc: {
|
|
862
|
-
clientId: '',
|
|
863
|
-
authority: '',
|
|
864
|
-
issuer: '',
|
|
865
|
-
},
|
|
866
861
|
azureB2C: {
|
|
867
862
|
clientId: '',
|
|
868
863
|
authority: '',
|
|
@@ -1286,6 +1281,9 @@ class SettingsService {
|
|
|
1286
1281
|
clearLoginAsUser() {
|
|
1287
1282
|
localStorage.removeItem(loginAsKey);
|
|
1288
1283
|
}
|
|
1284
|
+
clearToken() {
|
|
1285
|
+
localStorage.removeItem(tokenKey);
|
|
1286
|
+
}
|
|
1289
1287
|
setToken(token) {
|
|
1290
1288
|
localStorage.setItem(tokenKey, token);
|
|
1291
1289
|
}
|
|
@@ -1418,6 +1416,7 @@ class AzureB2CProvider extends AuthProvider {
|
|
|
1418
1416
|
}
|
|
1419
1417
|
}
|
|
1420
1418
|
logout() {
|
|
1419
|
+
this.settingsService.clearToken();
|
|
1421
1420
|
this.authService.logoutRedirect({
|
|
1422
1421
|
postLogoutRedirectUri: location.origin,
|
|
1423
1422
|
});
|
|
@@ -1708,7 +1707,7 @@ class PermissionsService {
|
|
|
1708
1707
|
this.signalRService
|
|
1709
1708
|
.on(EventNames.PermissionsUpdated)
|
|
1710
1709
|
.subscribe(() => {
|
|
1711
|
-
this.getPermissionsFromServer();
|
|
1710
|
+
this.getPermissionsFromServer().subscribe();
|
|
1712
1711
|
});
|
|
1713
1712
|
});
|
|
1714
1713
|
});
|