Class ApiAuthenticationEntryPoint

java.lang.Object
org.craftercms.studio.impl.v2.security.web.ApiAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class ApiAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Implementation of AuthenticationEntryPoint that returns a JSON object matching Studio's API specs
Since:
4.0
Author:
joseross
  • Field Details

    • API_1_RESPONSE

      public static final Map<String,String> API_1_RESPONSE
    • API_2_RESPONSE

      public static final Map<String,Object> API_2_RESPONSE
    • objectMapper

      protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • ApiAuthenticationEntryPoint

      public ApiAuthenticationEntryPoint()
  • Method Details

    • commence

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