You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@Override
public void close() {
if (this.tokenManager != null) {
this.tokenManager.logout();
}
closed = true;
client.close();
}
The text was updated successfully, but these errors were encountered:
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: