From a5cfd9fdb9829d3c464c022ab2b1586c0cafa1b5 Mon Sep 17 00:00:00 2001 From: Khy Date: Sat, 3 Aug 2019 14:47:04 +0800 Subject: [PATCH] Downgrade AuthenticationFilter modifier Fixes gh-7177 --- .../security/web/authentication/AuthenticationFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java b/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java index a62bc084ad..0f539842f0 100644 --- a/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java +++ b/web/src/main/java/org/springframework/security/web/authentication/AuthenticationFilter.java @@ -166,7 +166,7 @@ public class AuthenticationFilter extends OncePerRequestFilter { this.successHandler.onAuthenticationSuccess(request, response, chain, authentication); } - public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) + protected Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException, IOException, ServletException { Authentication authentication = this.authenticationConverter.convert(request); if (authentication == null) {