Skip to content

Commit 2c99063

Browse files
authored
Merge pull request #599 from bcgov/yj
chore: KC Quarkus update
2 parents a79ef2d + 24f76bb commit 2c99063

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

frontend/src/app/common/services/auth.service.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { environment } from '../../../environments/environment';
66
providedIn: 'root'
77
})
88

9-
// before KC Quarkus update
10-
119
export class AuthService {
1210

1311
constructor(private keycloak: KeycloakService) { }
@@ -19,27 +17,3 @@ export class AuthService {
1917
window.location.href = logoffUri;
2018
}
2119
}
22-
23-
// after KC Quarkus update
24-
25-
// export class AuthService {
26-
// constructor(private keycloak: KeycloakService) {}
27-
28-
// async logout(): Promise<void> {
29-
// try {
30-
// const idToken = await this.keycloak.getToken();
31-
// const redirectUri = `${environment.SM_LOGOFF_URL}?returl=${encodeURIComponent(
32-
// window.location.origin,
33-
// )}&retnow=1`;
34-
// const logoffUri = `${this.keycloak.getKeycloakInstance().authServerUrl}/realms/${
35-
// this.keycloak.getKeycloakInstance().realm
36-
// }/protocol/openid-connect/logout?post_logout_redirect_uri=${encodeURIComponent(
37-
// redirectUri,
38-
// )}&id_token_hint=${idToken}`;
39-
// window.location.href = logoffUri;
40-
// } catch (error) {
41-
// console.error('Failed to get ID token', error);
42-
// }
43-
// }
44-
// }
45-

0 commit comments

Comments
 (0)