Class AjaxAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
com.flowable.core.spring.security.web.authentication.AjaxAuthenticationFailureHandler
- All Implemented Interfaces:
AuthenticationFailureHandler
Returns a 401 error code (Unauthorized) to the client, when Ajax authentication fails.
-
Field Summary
Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAuthenticationFailure
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, 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, AuthenticationException exception) throws IOException, jakarta.servlet.ServletException - Specified by:
onAuthenticationFailure
in interfaceAuthenticationFailureHandler
- Overrides:
onAuthenticationFailure
in classSimpleUrlAuthenticationFailureHandler
- Throws:
IOException
jakarta.servlet.ServletException
-