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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commence(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Overrides:
      commence in class org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint
      Throws:
      IOException