That depends the feature you're working with and your use case. Sometimes 
the resolver is required, sometimes it's optional.

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Tom
> Poage
> Sent: Friday, January 22, 2016 3:46 PM
> To: CAS Community <[email protected]>
> Subject: [cas-user] Which AuthenticationHandler config?
>
> CAS 4.2.0 RC1:
>
> Which is the preferred way now to configure the AuthenticationHandler
> stack for 4.2 and beyond?
>
> This one looks to be wired into AbstractAuthenticationManager.
>
> >     <util:map id="authenticationHandlersResolvers">
> >         <entry key-ref="proxyAuthenticationHandler" value-
> ref="proxyPrincipalResolver" />
> >         <entry key-ref="primaryAuthenticationHandler" value-
> ref="primaryPrincipalResolver" />
> >     </util:map>
>
> setting primaryPrincipalResolver to "#{null}" when appropriate.
>
> Then I see e.g.
>
> >     <bean id="authenticationManager"
> class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
> >         <constructor-arg>
> >             <map>
> >                 <entry key-ref="acceptUsersAuthenticationHandler" value-
> ref="usernamePasswordCredentialsResolver" />
> >                 <entry key-ref="x509AuthenticationHandler" value-
> ref="x509CredentialsResolver" />
> >                 <entry key-ref="httpBasedAuthenticationHandler" value-
> ref="httpBasedCredentialsResolver" />
> >             </map>
> >         </constructor-arg>
> >     </bean>
>
> This class extends AbstractAuthenticationManager.
>
> Most configuration files in the distribution seem to use the first syntax. 
> I'd
> guess either could work, though.
>
> Thanks.
> Tom.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at 
> https://groups.google.com/a/apereo.org/group/cas-user/.

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Reply via email to