Fixed tests

This commit is contained in:
Erik Tiekstra
2021-11-15 08:29:13 +01:00
parent ce833b31bb
commit d0f64d6e14
28 changed files with 154 additions and 72 deletions

View File

@@ -41,7 +41,7 @@ export class AuthGuard implements CanActivate {
this.authenticationService.removeLocalStorageData();
if (environment.ciam.clientId) {
document.location.href = `${environment.ciam.loginUrl}&client_id=${environment.ciam.clientId}&redirect_uri=${window.location.origin}`;
window.location.href = `${environment.ciam.loginUrl}&client_id=${environment.ciam.clientId}&redirect_uri=${window.location.origin}`;
} else {
void this.router.navigateByUrl(environment.ciam.loginUrl);
}

View File

@@ -154,7 +154,7 @@ export class AuthenticationService {
this.removeLocalStorageData();
if (environment.ciam.clientId) {
document.location.href = environment.ciam.logoutUrl;
window.location.href = environment.ciam.logoutUrl;
} else {
void this.router.navigateByUrl(environment.ciam.logoutUrl);
}