@groovy.transform.CompileStatic class AjaxAwareAuthenticationFailureHandler extends ExceptionMappingAuthenticationFailureHandler implements InitializingBean
Ajax-aware failure handler that detects failed Ajax logins and redirects to the appropriate URL.
| Type | Name and description |
|---|---|
java.lang.String |
ajaxAuthenticationFailureUrlDependency injection for the Ajax auth fail url. |
| Constructor and description |
|---|
AjaxAwareAuthenticationFailureHandler() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
afterPropertiesSet() |
|
void |
onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) |
|
void |
setExceptionMappings(java.util.List<java.util.Map<java.lang.String, ?>> mappings)Dependency injection for the exception -> url mappings; each map has an 'exception' key and a 'url' key, and all are merged into one map, where each key is an exception name and each value is the url. |
|
void |
setExceptionMappingsList(java.util.List<java.util.Map<java.lang.String, ?>> mappings) |
Dependency injection for the Ajax auth fail url.
Dependency injection for the exception -> url mappings; each map has an 'exception' key and a 'url' key, and all are merged into one map, where each key is an exception name and each value is the url.
mappings - list of single-entry maps