Fixed tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user