@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class HudsonAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
HttpServletResponse.SC_FORBIDDEN
,
then redirect browsers automatically to the login page.
This is a compromise to handle programmatic access and real browsers equally well.
The page that programs see is entirely white, and it auto-redirects, so humans wouldn't notice it.
Constructor and Description |
---|
HudsonAuthenticationEntryPoint(String loginFormUrl) |
Modifier and Type | Method and Description |
---|---|
void |
commence(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp,
org.springframework.security.core.AuthenticationException reason) |
public HudsonAuthenticationEntryPoint(String loginFormUrl)
public void commence(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, org.springframework.security.core.AuthenticationException reason) throws IOException, javax.servlet.ServletException
commence
in interface org.springframework.security.web.AuthenticationEntryPoint
IOException
javax.servlet.ServletException
Copyright © 2004–2021. All rights reserved.