diff --git a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java index e4e2381142..4e2bc2571f 100644 --- a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java +++ b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java @@ -748,7 +748,7 @@ public class ServerHttpSecurity { } public LogoutSpec requiresLogout(ServerWebExchangeMatcher requiresLogout) { - this.logoutWebFilter.setRequiresLogout(requiresLogout); + this.logoutWebFilter.setRequiresLogoutMatcher(requiresLogout); return this; } diff --git a/web/src/main/java/org/springframework/security/web/server/authentication/logout/LogoutWebFilter.java b/web/src/main/java/org/springframework/security/web/server/authentication/logout/LogoutWebFilter.java index 96e00c4b9d..a2a653117c 100644 --- a/web/src/main/java/org/springframework/security/web/server/authentication/logout/LogoutWebFilter.java +++ b/web/src/main/java/org/springframework/security/web/server/authentication/logout/LogoutWebFilter.java @@ -90,8 +90,8 @@ public class LogoutWebFilter implements WebFilter { this.logoutHandler = logoutHandler; } - public void setRequiresLogout(ServerWebExchangeMatcher serverWebExchangeMatcher) { - Assert.notNull(serverWebExchangeMatcher, "serverWebExchangeMatcher must not be null"); - this.requiresLogout = serverWebExchangeMatcher; + public void setRequiresLogoutMatcher(ServerWebExchangeMatcher requiresLogoutMatcher) { + Assert.notNull(requiresLogoutMatcher, "requiresLogoutMatcher must not be null"); + this.requiresLogout = requiresLogoutMatcher; } }