mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -50,6 +50,9 @@ import org.json.JSONObject;
|
|||||||
*/
|
*/
|
||||||
public abstract class BaseAuthenticationFilter
|
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)}. */
|
/** The default session attribute used to cache the user. Subclasses may override this with {@link #setUserAttributeName(String)}. */
|
||||||
public static final String AUTHENTICATION_USER = "_alfDAVAuthTicket";
|
public static final String AUTHENTICATION_USER = "_alfDAVAuthTicket";
|
||||||
|
|
||||||
|
@@ -50,14 +50,6 @@ import org.springframework.beans.factory.InitializingBean;
|
|||||||
*/
|
*/
|
||||||
public abstract class BaseSSOAuthenticationFilter extends BaseAuthenticationFilter implements DependencyInjectedFilter, ActivateableBean, InitializingBean
|
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
|
// Allow an authentication ticket to be passed as part of a request to bypass authentication
|
||||||
|
|
||||||
private ExtendedServerConfigurationAccessor serverConfiguration;
|
private ExtendedServerConfigurationAccessor serverConfiguration;
|
||||||
|
Reference in New Issue
Block a user