Class AjaxAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
ubic.gemma.core.security.authentication.AjaxAuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
public class AjaxAuthenticationFailureHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
Strategy used to handle a failed user authentication if it is a ajax style login (ajaxLoginTrue parameter = true)
then no redirect happens and a some JSON is sent to the client if the request is not ajax style then the default
redirection takes place
This is in gemma-core because configuration takes place in applicationContext-security.xml
- Version:
- $Id: AjaxAuthenticationFailureHandler.java,v 1.9 2013/07/24 00:42:18 paul Exp $
- Author:
- cmcdonald
-
Field Summary
Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
-
Constructor Details
-
AjaxAuthenticationFailureHandler
public AjaxAuthenticationFailureHandler()
-
-
Method Details
-
onAuthenticationFailure
public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws jakarta.servlet.ServletException, IOException - Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Overrides:
onAuthenticationFailurein classorg.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler- Throws:
jakarta.servlet.ServletExceptionIOException
-