Luis, I have same version of cas server. You can read my deployerConfigContext.xml comfiguration in one of my last messages...
Gianluca Il giorno venerdì 15 maggio 2015 14:57:13 UTC+2, Luís Lobo ha scritto: > > Hi! > > Thanks for your prompt response. > > Can you please tell me where and how to configure 'attribute release'? > I am using a *modified* version of the example ( > https://github.com/UniconLabs/simple-cas4-overlay-template) > deployerConfigContext.xml file. > > I've tried this with no success: > > <util:list id="registeredServicesList"> > <bean class="org.jasig.cas.services.RegexRegisteredService" > p:id="0" p:name="HTTP and IMAP" p:description="Allows HTTP(S) > and IMAP(S) protocols" > p:serviceId="^(https?|imaps?)://.*" p:evaluationOrder="10000001" > > > <property name="allowedAttributes"> > <list> > <value>client_id</value> > </list> > </property> > </bean> > </util:list> > > Best regards, > LL > > > On Friday, 15 May 2015 10:12:56 UTC+1, Misagh Moayyed wrote: >> >> Are you allowing attributes for release? Is your client talking to >> /p3/serviceValidate? >> >> >> >> *From:* Gianluca Diodato [mailto:[email protected]] >> *Sent:* Friday, May 15, 2015 1:41 AM >> *To:* [email protected] >> *Subject:* Re:[cas-user] Empty Attribute Map >> >> >> >> Same problem with Java Cas Client but no answers yet from community.. >> >> I'm almost depressed. >> >> >> >> Gianluca >> >> Il giorno giovedì 14 maggio 2015 12:33:26 UTC+2, Luís Lobo ha scritto: >> >> Hi! >> >> >> >> I am using CAS Server version 4.0.1 and I am having trouble with the >> attributes. The problem is that in the client side (phpCAS) the attribute >> map is empty. >> >> >> >> The relevant parts in my deployerConfigContext.xml are: >> >> <bean id="authenticationManager" class= >> "org.jasig.cas.authentication.PolicyBasedAuthenticationManager"> >> <constructor-arg> >> <map> >> <entry key-ref="userAuthHandler" value-ref= >> "principalResolver" /> >> </map> >> </constructor-arg> >> >> <property name="authenticationPolicy"> >> <bean class= >> "org.jasig.cas.authentication.AnyAuthenticationPolicy" /> >> </property> >> </bean> >> >> >> >> The principal resolver is declared as: >> >> <bean id="personAttributeDao" >> class= >> "org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao" >> > >> <constructor-arg index="0" ref="dataSource" /> >> <constructor-arg index="1" value="${auth.resolverSql}" /> >> <property name="queryAttributeMapping"> >> <map> >> <entry key="username" value="username" /> >> </map> >> </property> >> <property name="resultAttributeMapping"> >> <map> >> <entry key="login" value="login" /> >> <entry key="client_id" value="client_id" /> >> </map> >> </property> >> </bean> >> >> <bean id="principalResolver" >> class= >> "org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver" >> p:principalAttributeName="username" >> p:attributeRepository-ref="personAttributeDao" >> p:returnNullIfNoAttributes="true" /> >> >> >> The relevant log line in the console is: >> >> 2015-05-14 11:33:41,370 INFO [org.jasig.cas.authentication. >> PolicyBasedAuthenticationManager] - <Authenticated [email protected] with >> credentials [<username>+password].> >> 2015-05-14 11:33:41,370 DEBUG [org.jasig.cas.authentication. >> PolicyBasedAuthenticationManager] - <Attribute map for [email protected]: >> {login=<username>, client_id=123}> >> >> (<username> is the user's login) >> >> Am I missing something? >> >> >> >> Regards, >> >> LL >> >> >> >> -- >> >> 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 >> >> -- >> 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 >> >> -- 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
