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 a62bc084ad9..0f539842f08 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 @@ protected void successfulAuthentication(HttpServletRequest request, HttpServletR 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) {