@open-rlb/ng-app 3.0.17 → 3.0.18
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.
|
@@ -1317,7 +1317,6 @@ class AuthenticationService {
|
|
|
1317
1317
|
// } else {
|
|
1318
1318
|
return this.oidc.checkAuthMultiple(url)
|
|
1319
1319
|
.pipe(tap(data => {
|
|
1320
|
-
this.logger.warn(`oidc checkAuthMultiple check, response: ${JSON.stringify(data)}; looking for at least one isAuthenticated`);
|
|
1321
1320
|
const authenticatedConfig = data.find(o => o.isAuthenticated);
|
|
1322
1321
|
if (authenticatedConfig && authenticatedConfig.configId) {
|
|
1323
1322
|
this.logger.info(`User is authenticated with provider: ${authenticatedConfig.configId}. Updating Store.`);
|
|
@@ -1325,7 +1324,6 @@ class AuthenticationService {
|
|
|
1325
1324
|
this.store.dispatch(AuthActions.setCurrentProvider({
|
|
1326
1325
|
currentProvider: authenticatedConfig.configId
|
|
1327
1326
|
}));
|
|
1328
|
-
// Redirect logic -> clean query params
|
|
1329
1327
|
const redirect = localStorage.getItem('loginRedirectUrl');
|
|
1330
1328
|
//const redirect = this.cookiesService.getCookie('loginRedirectUrl');
|
|
1331
1329
|
this.logger.info(`Correct provider dispatched, redirectUrl: ${redirect}`);
|
|
@@ -1339,12 +1337,12 @@ class AuthenticationService {
|
|
|
1339
1337
|
}, 0);
|
|
1340
1338
|
}
|
|
1341
1339
|
else {
|
|
1342
|
-
this.logger.info(`
|
|
1343
|
-
this.router.navigate([], {
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
});
|
|
1340
|
+
this.logger.info(`User authenticated, no redirectUrl found. Staying on current route.`);
|
|
1341
|
+
// this.router.navigate([], {
|
|
1342
|
+
// queryParams: {},
|
|
1343
|
+
// replaceUrl: true,
|
|
1344
|
+
// relativeTo: this.router.routerState.root
|
|
1345
|
+
// });
|
|
1348
1346
|
}
|
|
1349
1347
|
}
|
|
1350
1348
|
else {
|