Class Http401AuthenticationEntryPoint
java.lang.Object
org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint
com.xebialabs.deployit.plumbing.authentication.Http401AuthenticationEntryPoint
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.security.web.AuthenticationEntryPoint
public class Http401AuthenticationEntryPoint
extends org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint
If request header contains `X-HTTP-Auth-Override` we won't send back the header `WWW-Authenticate` OR
since event source (sse) can't use custom headers this will also check if the request is for the SSE endpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) Methods inherited from class org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint
afterPropertiesSet, getRealmName, setRealmName
-
Constructor Details
-
Http401AuthenticationEntryPoint
public Http401AuthenticationEntryPoint()
-
-
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:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Overrides:
commencein classorg.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint- Throws:
IOException
-