From 37ab14d33e4bd53b5fdccc40d57d261d4c2147eb Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 2 Oct 2024 10:23:43 +0200 Subject: [PATCH] refactor(security): simplify logout method parameters --- .../de/szut/lf8_starter/security/KeycloakLogoutHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/szut/lf8_starter/security/KeycloakLogoutHandler.java b/src/main/java/de/szut/lf8_starter/security/KeycloakLogoutHandler.java index 8555ef9..3051a80 100644 --- a/src/main/java/de/szut/lf8_starter/security/KeycloakLogoutHandler.java +++ b/src/main/java/de/szut/lf8_starter/security/KeycloakLogoutHandler.java @@ -25,10 +25,10 @@ public class KeycloakLogoutHandler implements LogoutHandler { @Override public void logout(HttpServletRequest request, HttpServletResponse response, Authentication auth) { - logout(request, auth); + logout(auth); } - public void logout(HttpServletRequest request, Authentication auth) { + public void logout(Authentication auth) { logoutFromKeycloak((OidcUser) auth.getPrincipal()); }