mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-03 01:02:34 +00:00
SEC-238: Add AuthenticationException to onUnsuccessfulAuthentication method signature.
This commit is contained in:
parent
942bdbfad3
commit
d541c8e257
@ -311,7 +311,8 @@ public abstract class AbstractProcessingFilter implements Filter,
|
|||||||
throws IOException {}
|
throws IOException {}
|
||||||
|
|
||||||
protected void onUnsuccessfulAuthentication(HttpServletRequest request,
|
protected void onUnsuccessfulAuthentication(HttpServletRequest request,
|
||||||
HttpServletResponse response) throws IOException {}
|
HttpServletResponse response, AuthenticationException failed)
|
||||||
|
throws IOException {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@ -473,7 +474,7 @@ public abstract class AbstractProcessingFilter implements Filter,
|
|||||||
.setAttribute(ACEGI_SECURITY_LAST_EXCEPTION_KEY, failed);
|
.setAttribute(ACEGI_SECURITY_LAST_EXCEPTION_KEY, failed);
|
||||||
} catch (Exception ignored) {}
|
} catch (Exception ignored) {}
|
||||||
|
|
||||||
onUnsuccessfulAuthentication(request, response);
|
onUnsuccessfulAuthentication(request, response, failed);
|
||||||
|
|
||||||
rememberMeServices.loginFail(request, response);
|
rememberMeServices.loginFail(request, response);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user