diff --git a/docker/keycloak/extensions-24/services/src/main/java/com/github/bcgov/keycloak/authenticators/UserSessionRemover.java b/docker/keycloak/extensions-24/services/src/main/java/com/github/bcgov/keycloak/authenticators/UserSessionRemover.java index bdb68860..ced75e6f 100644 --- a/docker/keycloak/extensions-24/services/src/main/java/com/github/bcgov/keycloak/authenticators/UserSessionRemover.java +++ b/docker/keycloak/extensions-24/services/src/main/java/com/github/bcgov/keycloak/authenticators/UserSessionRemover.java @@ -44,7 +44,7 @@ public void authenticate(AuthenticationFlowContext context) { for (String activeSessionClientUUID : authenticatedClientSessions.keySet()) { if (!activeSessionClientUUID.equals(authenticatingClientUUID)) { - userSessionProvider.removeUserSession(context.getRealm(), authResult.getSession()); + userSessionProvider.removeUserSession(context.getRealm(), userSessionModel); } }