This commit is contained in:
Adina Țeudan 2023-01-18 07:15:47 +02:00
parent a2bb0360d7
commit d7b80af5bb
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ function getKeycloakOptions(baseUrl: string, configService: IqserConfigService):
};
}
function configureAutomaticRedirectToLoginScreen(keyCloakService: KeycloakService,configService: IqserConfigService) {
function configureAutomaticRedirectToLoginScreen(keyCloakService: KeycloakService, configService: IqserConfigService) {
keyCloakService.getKeycloakInstance().onAuthRefreshError = () => {
window.location.href = keyCloakService.getKeycloakInstance().createLoginUrl({
redirectUri: window.location.href,

View File

@ -71,7 +71,7 @@ export abstract class IqserUserService<
await this._cacheApiService.wipeCaches();
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
redirectUri: window.location.origin + this._baseHref,
idpHint: this._configService.values.OAUTH_IDP_HINT
idpHint: this._configService.values.OAUTH_IDP_HINT,
});
}