Dear List,
I'm trying to allow delegated authentication to Twitter using the pac4j
library as described in the documentation. The authentication is
successful but I'm unable to map the received attributes.
I have tried to use the BasicPrincipalResolver but looking at the code
I'm realizing that this specific implementation is not intended for
recovering attributes. I was wondering if I should use the
PersonDirectory with one of its AttributeDaos or if I'm in the right
direction.
To use the BasicPrincipalResolver I have configured the
deployerconfig.xml. Is there any specific way to configure the deployer
in other to extract pac4j attributes?
Following you can find the modifications I did to deployerconfig:
<bean id="authenticationManager"
class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
<constructor-arg>
<map>
<entry key-ref="proxyAuthenticationHandler"
value-ref="proxyPrincipalResolver" />
<entry key-ref="ldapAuthenticationHandler"
value-ref="primaryPrincipalResolver" />
<entry key-ref="primaryAuthenticationHandler"
value-ref="basicPrincipalResolver" />
</map>
</constructor-arg>
<property name="authenticationMetaDataPopulators">
<util:list>
<bean
class="org.jasig.cas.support.pac4j.authentication.ClientAuthenticationMetaDataPopulator"
/>
<bean
class="org.jasig.cas.support.saml.authentication.SamlAuthenticationMetaDataPopulator"/>
<!--<bean
class="org.jasig.cas.authentication.CacheCredentialsMetaDataPopulator"/>-->
</util:list>
</property>
<property name="authenticationPolicy">
<bean
class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
</property>
</bean>
.................
<bean id="primaryAuthenticationHandler"
class="org.jasig.cas.support.pac4j.authentication.handler.support.ClientAuthenticationHandler"
c:theClients-ref="clients" />
<bean id="basicPrincipalResolver"
class="org.jasig.cas.authentication.principal.BasicPrincipalResolver" />
...................
Thanks in advance
--
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/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/5710D89B.8040903%40um.es.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.