Pull request #21: RED-5016: Removed 'login' placeholder.

Merge in SL/common-ui from RED-5016 to master

* commit '8fb0dc5f7be13c3c8a557d67a6f37cdd08e219f3':
  RED-5016: Removed 'login' placeholder.
This commit is contained in:
Nicoleta Panaghiu 2022-08-25 13:26:11 +02:00
commit 7a456438cd
3 changed files with 3 additions and 9 deletions

View File

@ -56,11 +56,9 @@ export class ServerErrorInterceptor implements HttpInterceptor {
catchError((error: HttpErrorResponse) => {
// token expired
if (error.status === HttpStatusCode.Unauthorized) {
const url = this._keycloakService.getKeycloakInstance().createLoginUrl({
loginHint: 'login',
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
redirectUri: window.location.href,
});
window.location.href = url;
}
// server error

View File

@ -41,11 +41,9 @@ function getKeycloakOptions(baseUrl: string, configService: IqserConfigService):
function configureAutomaticRedirectToLoginScreen(keyCloakService: KeycloakService) {
keyCloakService.getKeycloakInstance().onAuthRefreshError = () => {
const url = keyCloakService.getKeycloakInstance().createLoginUrl({
loginHint: 'login',
window.location.href = keyCloakService.getKeycloakInstance().createLoginUrl({
redirectUri: window.location.href,
});
window.location.href = url;
};
}

View File

@ -52,11 +52,9 @@ export abstract class IqserUserService<
async logout() {
await this._cacheApiService.wipeCaches();
await this._keycloakService.logout();
const url = this._keycloakService.getKeycloakInstance().createLoginUrl({
loginHint: 'login',
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
redirectUri: window.location.origin + this._baseHref,
});
window.location.href = url;
}
loadAll() {