hudson.security
Class HudsonAuthenticationEntryPoint

java.lang.Object
  extended by org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint
      extended by 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

Constructor Summary
HudsonAuthenticationEntryPoint()
           
 
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
 

Constructor Detail

HudsonAuthenticationEntryPoint

public HudsonAuthenticationEntryPoint()
Method Detail

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.