keycloak-benchmark icon indicating copy to clipboard operation
keycloak-benchmark copied to clipboard

Logout when user session it not found

Open pruivo opened this issue 1 year ago • 1 comments

Description

Some tests in org.keycloak.benchmark.crossdc.LoginLogoutTest are disabled for the external Infinispan feature because they delete the user session from the external Infinispan.

When the logout endpoint tries to find the user session for validation, it fails and performs no other operation.

I want to propose adding a new method in UserSessionProvider. Something like removeInexistentUserSession(Realm realm, String id, boolean offline) where it is possible to regenerate the Infinispan key and invoke the cache.remove(). The removal will be replicated across sites.

Currently, there is no way to retrieve the AuthenticatedClientSessionEntity and they will stay in the caches...

Discussion

No response

Motivation

No response

Details

No response

pruivo avatar Jul 04 '24 14:07 pruivo

TODO: remove the test case as it isn't relevant for the new A/A setup

ahus1 avatar Sep 02 '24 13:09 ahus1