hudson.security
Class HudsonAuthenticationEntryPoint
java.lang.Object
org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint
hudson.security.HudsonAuthenticationEntryPoint
- All Implemented Interfaces:
- org.acegisecurity.ui.AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean
public class HudsonAuthenticationEntryPoint
- extends org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint
For anonymous requests to pages that require authentication,
first respond with 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.
- Author:
- Kohsuke Kawaguchi
Method Summary |
void |
commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
org.acegisecurity.AuthenticationException authException)
|
Methods inherited from class org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint |
afterPropertiesSet, determineUrlToUseForThisRequest, getForceHttps, getLoginFormUrl, getPortMapper, getPortResolver, isServerSideRedirect, setForceHttps, setLoginFormUrl, setPortMapper, setPortResolver, setServerSideRedirect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HudsonAuthenticationEntryPoint
public HudsonAuthenticationEntryPoint()
commence
public void commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
org.acegisecurity.AuthenticationException authException)
throws IOException,
javax.servlet.ServletException
- Specified by:
commence
in interface org.acegisecurity.ui.AuthenticationEntryPoint
- Overrides:
commence
in class org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2004-2013. All Rights Reserved.