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

public class RestAuthenticationFailureHandler extends UsernameStoringAuthenticationFailureHandler
Failure handler for REST login endpoint. Will respond with UNAUTHORIZED code and JSON response with error.
  • 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:
      onAuthenticationFailure in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
      Overrides:
      onAuthenticationFailure in class UsernameStoringAuthenticationFailureHandler
      Throws:
      IOException
      javax.servlet.ServletException