RED-4828: Logout after session timeout redirects to login page.
This commit is contained in:
parent
c17ba13b4f
commit
c3aebd9433
@ -18,10 +18,13 @@ export class IqserAuthGuard extends KeycloakAuthGuard {
|
||||
async isAccessAllowed(route: ActivatedRouteSnapshot): Promise<boolean> {
|
||||
if (!this.authenticated) {
|
||||
const kcIdpHint = route.queryParamMap.get('kc_idp_hint');
|
||||
await this._keycloak.login({
|
||||
idpHint: kcIdpHint ?? this._configService.values.OAUTH_IDP_HINT,
|
||||
const options: any = {
|
||||
redirectUri: window.location.href,
|
||||
});
|
||||
};
|
||||
if (kcIdpHint ?? this._configService.values.OAUTH_IDP_HINT) {
|
||||
options.idpHint = kcIdpHint ?? this._configService.values.OAUTH_IDP_HINT;
|
||||
}
|
||||
await this._keycloak.login(options);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user