Hi Guys /
I am using a single Credential, but 2 handlers (LDAP & RADIUS handlers) as
below.
And using the AllAuthenticationPolicy assuming it would validate all the 2
handlers above.
But once the first handler is successful it exits without validating the
second handlers.
<bean id="authenticationManager"
class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
<constructor-arg index="0">
<list value-type="org.jasig.cas.authentication.AuthenticationHandler" >
<ref local="ldapAuthenticationHandler"/>
<ref local="radiusAuthenticationHandler"/>
</list>
</constructor-arg>
<property name="authenticationPolicy">
<bean
class="org.jasig.cas.authentication.AllAuthenticationPolicy" />
</property>
</bean>
AllAuthenticationPolicy code looks like this, in my case the success size
and credential size ==1 after the first handler and exits.
Is the framework is designed like this ?
Can't I have one credential and 2 handlers and expect to validate all
handlers ??
public class AllAuthenticationPolicy implements AuthenticationPolicy {
@Override
public boolean isSatisfiedBy(final Authentication authn) {
return authn.getSuccesses().size() == authn.getCredentials().size();
}
}
Thanks
Jay
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user