@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class RestAuthenticationFailureHandler extends java.lang.Object
Sets the configured status code.
Type | Name and description |
---|---|
java.lang.Integer |
statusCode Configurable status code, by default: conf.rest.login.failureStatusCode? |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) Called when an authentication attempt fails. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Configurable status code, by default: conf.rest.login.failureStatusCode?:HttpServletResponse.SC_FORBIDDEN
Called when an authentication attempt fails.
request
- the request during which the authentication attempt occurred.response
- the response.exception
- the exception which was thrown to reject the authentication request.