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:
commit
7a456438cd
@ -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
|
||||
|
||||
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user