Hi Aldo, This issue just driving me crazy. Can you post your configuration server-side and client-side? (I use Saml protocol..)
Best Gianluca Il giorno venerdì 18 maggio 2012 23:35:14 UTC+2, Aldo Nievas ha scritto: > > solved it ! > > just in case anyone else need it. Added those extra fields under allowed > Attributes. > > <bean > id="serviceRegistryDao" > class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"> > <property name="registeredServices"> > <list> > <bean class="org.jasig.cas.services.RegisteredServiceImpl"> > <property name="id" value="0" /> > <property name="name" value="HTTP" /> > <property name="description" value="Only Allows HTTP Urls" /> > <property name="serviceId" value="http://**" /> > <property name="evaluationOrder" value="10000001" /> > <property name="allowedAttributes"> > <list> > <value>first_name</value> > <value>last_name</value> > </list> > </property> > </bean> > > > -- Aldo Nievas > SATIO Web Development > al...@satio.com.ar <javascript:> > M: 54 11 3487 4900 > > > > On Fri, May 18, 2012 at 6:12 PM, Aldo Nievas <al...@satio.com.ar > <javascript:>> wrote: > >> Yes Misagh, but with no luck. >> >> It seems that the query is not being executed someway. Primary key in my >> users database is email and is mapping to username. >> I don't know if the order of key value is ok. >> >> <bean id="attributeRepository" >> >> >> >> class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao"> >> >> >> <constructor-arg index="0" ref="dataSource"/> >> >> >> <constructor-arg index="1" value="SELECT first_name, last_name, >> email FROM users WHERE {0}"/> >> >> >> >> >> >> <property name="queryAttributeMapping"> >> >> >> <map> >> >> >> <entry key="email" value="username" /> >> >> >> </map> >> >> >> </property> >> >> >> <property name="resultAttributeMapping"> >> >> >> <map> >> >> >> <entry key="email" value="email" /> >> >> >> <entry key="first_name" value="first_name" /> >> >> >> <entry key="last_name" value="last_name" /> >> >> >> </map> >> >> >> </property> >> >> >> </bean> >> >> >> >> >> >> >> Thanks for your time. >> >> -- Aldo Nievas >> SATIO Web Development >> al...@satio.com.ar <javascript:> >> M: 54 11 3487 4900 >> >> >> >> On Fri, May 18, 2012 at 5:55 PM, Misagh Moayyed <mmoa...@unicon.net >> <javascript:>> wrote: >> >>> Have you tried to follow the steps at the official CAS documentation at >>> https://wiki.jasig.org/display/CASUM/Attributes ? >>> >>> >>> >>> *-*Misagh >>> >>> >>> >>> *From:* aldo....@satio.com.ar <javascript:> [mailto: >>> aldo....@satio.com.ar <javascript:>] *On Behalf Of *Aldo Nievas >>> *Sent:* Friday, May 18, 2012 1:28 PM >>> *To:* cas-...@lists.jasig.org <javascript:> >>> *Subject:* [cas-user] Getting more attributes from CAS than just user id >>> >>> >>> >>> Hi guys. >>> >>> I'm trying to get more attributes from CAS after authentication but with >>> no luck so far. >>> >>> >>> >>> I have followed this post >>> >>> >>> >>> >>> http://stackoverflow.com/questions/4882298/getting-more-attributes-from-cas-than-just-user-id >>> >>> >>> >>> and adapted my files this way: >>> >>> >>> >>> https://gist.github.com/2727416 >>> >>> >>> >>> but what I have is always: >>> >>> >>> >>> Request contains ticket "ST-1-dc5ge5EDQcJprMgg3dfW-cas". >>> >>> Guessed service url: "http://localhost:3000/my_portfolio" >>> >>> Requesting CAS response for URI >>> http://localhost:8080/cas/proxyValidate?service=http%3A%2F%2Flocalhost%3A3000%2Fmy_portfolio&ticket=ST-1-dc5ge5EDQcJprMgg3dfW-cas >>> >>> CAS server responded with #<Net::HTTPOK 200 OK readbody=true>: >>> >>> <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> >>> >>> <cas:authenticationSuccess> >>> >>> <cas:user>eli...@kassabchi.com <javascript:></cas:user> >>> >>> >>> >>> >>> >>> </cas:authenticationSuccess> >>> >>> </cas:serviceResponse> >>> >>> Ticket "ST-1-dc5ge5EDQcJprMgg3dfW-cas" for service " >>> http://localhost:3000/my_portfolio" belonging to user " >>> eli...@kassabchi.com <javascript:>" is VALID. >>> >>> Extra user attributes provided along with ticket >>> "ST-1-dc5ge5EDQcJprMgg3dfW-cas": {"name"=>"Aldo"}. >>> >>> >>> >>> >>> >>> Any help could be appreciate it. >>> >>> >>> -- Aldo Nievas >>> >>> SATIO Web Development >>> >>> al...@satio.com.ar <javascript:> >>> >>> M: 54 11 3487 4900 >>> >>> >>> >>> -- >>> You are currently subscribed to cas-...@lists.jasig.org <javascript:> as: >>> mmoa...@unicon.net <javascript:> >>> >>> >>> >>> To unsubscribe, change settings or access archives, see >>> http://www.ja-sig.org/wiki/display/JSG/cas-user >>> >>> -- >>> You are currently subscribed to cas-...@lists.jasig.org <javascript:> as: >>> al...@satio.com.ar <javascript:> >>> To unsubscribe, change settings or access archives, see >>> http://www.ja-sig.org/wiki/display/JSG/cas-user >>> >>> >> > -- > You are currently subscribed to cas-...@lists.jasig.org <javascript:> as: > jasig-cas-user...@googlegroups.com <javascript:> > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user