12-11-2009 12:27 PM
12-15-2009 09:35 AM
// request credentials if not authorized
if (!authorized)
{
if (logger.isDebugEnabled())
logger.debug("Requesting authorization credentials");
res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
res.setHeader("WWW-Authenticate", "Basic realm=\"Alfresco\"");
}
12-15-2009 10:31 AM
you could define a new impelementaion of the "webscripts.authenticator.delegatingbasic" bean in the web-framework-config-custom.xml.
12-15-2009 11:05 AM
<!– HTTP Basic Delegating Authenticator (Servlet based) –>
<bean id="webscripts.authenticator.delegatingbasic" class="org.alfresco.web.scripts.BasicHttpAuthenticatorFactory">
<property name="connectorService" ref="connector.service" />
<property name="endpointId" value="alfresco-feed" />
<property name="delegate" value="true" />
</bean>
<!– HTTP Basic Delegating Authenticator (Servlet based) –>
<bean id="webscripts.authenticator.delegatingbasic" class="my.package.MyBasicHttpAuthenticatorFactory">
<property name="connectorService" ref="connector.service" />
<property name="endpointId" value="alfresco-feed" />
<property name="delegate" value="true" />
</bean>
12-22-2009 09:08 AM
<alfresco-config>
<!– –>
<!– Web Script Authenticators (KVA)) –>
<!– –>
<!– HTTP Basic Authenticator (Servlet based) –>
<bean id="webscripts.authenticator.basic" class="org.alfresco.web.scripts.BasicHttpAuthenticatorFactoryKVA">
<property name="connectorService" ref="connector.service" />
<property name="endpointId" value="alfresco-feed" />
</bean>
<!– HTTP Basic Delegating Authenticator (Servlet based) –>
<bean id="webscripts.authenticator.delegatingbasic" class="org.alfresco.web.scripts.BasicHttpAuthenticatorFactoryKVA">
<property name="connectorService" ref="connector.service" />
<property name="endpointId" value="alfresco-feed" />
<property name="delegate" value="true" />
</bean>
</alfresco-config>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.