Hi everyone,
I have KeyCloak operating as an identity provider for my web-based application via OIDC. Currently I’m struggling with configuring the loging out from the system. Here is my scenario:
- User clicks “Log out” button in the browser
- Ther browser opens https://keycloak.example.com//realms/myrealm/protocol/openid-connect/logout?post_logout_redirect_uri=https://myapp.example.com&client_id=myclient
- User is redirected to the main page of my app after successful logout
Currently, when a user clicks “Log Out”, the keycloak logout page opens and then user is redirected to the main page without any confirmation. The lack of confirmation is undesired, however it’s not the critical issue. The real problem is that user session doesn’t disappear in the keycloak administration console (myrealm → users → myuser → sessions).
It’s also seems strange to me that if a user open keycloak logout page without parameters (i.e. without post_logout_redirect_uri and client_id) then there is a confirmation form and the user session is destroyed after user logs out.