keycloak / keycloak-benchmark

Keycloak Benchmark
https://www.keycloak.org/keycloak-benchmark/
Apache License 2.0
124 stars 66 forks source link

Logout when user session it not found #886

Open pruivo opened 3 days ago

pruivo commented 3 days ago

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