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 ofAuthenticationEntryPoint
that returns a JSON object matching Studio's API specs- Since:
- 4.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,String>
API_1_RESPONSE
static Map<String,Object>
API_2_RESPONSE
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description ApiAuthenticationEntryPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
-
-
-
Method Detail
-
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException
- Specified by:
commence
in interfaceorg.springframework.security.web.AuthenticationEntryPoint
- Throws:
IOException
-
-