ALF-2265: Share 'Uber Filter' part 2

- WebScriptNTLMAuthenticationFilter detached from its superclass and renamed to WebScriptSSOAuthenticationFilter
- Now the filter simply chains to the downstream authentication filter rather than call its superclass
- This means the same filter can be used for Kerberos-protected webscripts as well as NTLM
- Wired globalAuthenticationFilter behind webscriptAuthenticationFilter in the filter chain in web.xml
- Configured webscriptAuthenticationFilter for Kerberos subsystem


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20616 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2010-06-13 13:25:32 +00:00
parent 8080fd96f1
commit 56255ec216
2 changed files with 4 additions and 9 deletions

View File

@@ -50,6 +50,9 @@ import org.json.JSONObject;
*/
public abstract class BaseAuthenticationFilter
{
/** Indication by an up-stream filter that no authentication checks are required. */
protected static final String NO_AUTH_REQUIRED = "alfNoAuthRequired";
/** The default session attribute used to cache the user. Subclasses may override this with {@link #setUserAttributeName(String)}. */
public static final String AUTHENTICATION_USER = "_alfDAVAuthTicket";

View File

@@ -49,15 +49,7 @@ import org.springframework.beans.factory.InitializingBean;
* @author kroast
*/
public abstract class BaseSSOAuthenticationFilter extends BaseAuthenticationFilter implements DependencyInjectedFilter, ActivateableBean, InitializingBean
{
// Constants
//
// Session value names
//
// Note: These values are copied from the AuthenticationHelper and LoginBean classes to avoid project dependencies
protected static final String NO_AUTH_REQUIRED = "alfNoAuthRequired";
{
// Allow an authentication ticket to be passed as part of a request to bypass authentication
private ExtendedServerConfigurationAccessor serverConfiguration;