com.odobo.grails.plugin.springsecurity.rest
[Groovy] Class RestAuthenticationFailureHandler
java.lang.Object
com.odobo.grails.plugin.springsecurity.rest.RestAuthenticationFailureHandler
- All Implemented Interfaces:
- org.springframework.security.web.authentication.AuthenticationFailureHandler
@groovy.util.logging.Log4j
class RestAuthenticationFailureHandler
Sets the configured status code.
Property Summary |
java.lang.Integer |
statusCode
Configurable status code, by default: conf.rest.login.failureStatusCode?
|
Method Summary |
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 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() |
statusCode
java.lang.Integer statusCode
- Configurable status code, by default: conf.rest.login.failureStatusCode?:HttpServletResponse.SC_FORBIDDEN
RestAuthenticationFailureHandler
RestAuthenticationFailureHandler()
-
onAuthenticationFailure
void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
- Called when an authentication attempt fails.
- Parameters:
request
- the request during which the authentication attempt occurred.response
- the response.exception
- the exception which was thrown to reject the authentication request.
Groovy Documentation