I have an Angular 9 application. Trying to connect with Keycloak server. My final goal is to have SSO for 3 applications, with auth-guard on each (access only some pages requires authentication).
Having multiple issues, but let do one at a time.
Using keycloak-angular with keycloak-js.
When I do keycloak.login() (with or without redirectUri) most of the time it goes to keycloak/auth page and comes back authenticated - without waiting for user input. I did double-check not to save any user data in browser autofill.
I will share more data upon request.
Update:
I see in the Keycloak console, that even after logging out, the session is still active. using:
keycloakservice.clearToken();
keycloakservice.logout();
Update:
changed logout code to:
this.keycloakService.logout().then(() => this.keycloakService.clearToken());
The keycloak cookies are removed every time, but the session in keycloak stays about 50% of the times. (see screenshot). Angular, Keycloak-js and keycloak-angular are updated to the latest version.
