Class RestAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
com.atlassian.crowd.integration.springsecurity.UsernameStoringAuthenticationFailureHandler
com.atlassian.crowd.integration.springsecurity.RestAuthenticationFailureHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
Failure handler for REST login endpoint. Will respond with UNAUTHORIZED code and JSON response with error.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.atlassian.crowd.integration.springsecurity.UsernameStoringAuthenticationFailureHandler
LAST_USERNAME_KEYFields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) Methods inherited from class com.atlassian.crowd.integration.springsecurity.UsernameStoringAuthenticationFailureHandler
storeUsernameMethods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
-
Constructor Details
-
RestAuthenticationFailureHandler
public RestAuthenticationFailureHandler()
-
-
Method Details
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, javax.servlet.ServletException - Specified by:
onAuthenticationFailurein interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler- Overrides:
onAuthenticationFailurein classUsernameStoringAuthenticationFailureHandler- Throws:
IOExceptionjavax.servlet.ServletException
-