Close session when client is closed #111
Labels
area/admin-client
kind/enhancement
priority/important
Must be worked on very soon
status/fix-in-keycloak-required
Refers to the issue, which need fix in keycloak/keycloak and will be synced to keycloak-client later
team/core-clients
Description
When I use the admin client in a Quarkus application, like in this tutorial and call the endpoint of the REST resource several times, the number of sessions increase with every request. This also happens when using the client in a try-with-resources block.
But the session is properly closed when executing
tokenManager().logout();
.Note that there is already an issue in the Keycloak repository.
Discussion
No response
Motivation
Automatically cleanup every session when the close method of the client is used.
Details
I could provide a PR in the Keycloak repository for this issue. The change is small:
The text was updated successfully, but these errors were encountered: