Class DSpace401AuthenticationEntryPoint

java.lang.Object
org.dspace.app.rest.security.DSpace401AuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class DSpace401AuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Spring security authentication entry point to return a 401 response for unauthorized requests This class is used in the WebSecurityConfiguration class.
  • Constructor Details

    • DSpace401AuthenticationEntryPoint

      public DSpace401AuthenticationEntryPoint(RestAuthenticationService restAuthenticationService)
  • Method Details

    • commence

      public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException, javax.servlet.ServletException
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException
      javax.servlet.ServletException