From dcb5932de0c5ee23fafb8be0def43ce6727eaf36 Mon Sep 17 00:00:00 2001 From: jonathan langlois Date: Thu, 29 Aug 2024 10:51:28 -0700 Subject: [PATCH] feat: reuse var remove duplicate method call --- .../bcgov/keycloak/authenticators/UserSessionRemover.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }