Hi, Folks! After getting to authenticate with Facebook, I'm trying to send the user name, e-mail and access-token for the client application. Following the wiki https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1, I have configured deployerConfigContext.xml like this:
<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="HTTPS Services" /> <property name="description" value="YOUR HTTP Service" /> <property name="serviceId" value="https://**" /> <property name="evaluationOrder" value="0" /> <property name="usernameAttribute" value="someAttributeName" /> <property name="allowedAttributes"> <list> <!-- facebook --> <value>name</value> <value>e-mail</value> <value>access_token</value> </list> </property> </bean> </list> </property> </bean> But the response sended to client's ticket validation was: <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> <cas:authenticationSuccess> <cas:user>FacebookProfile#100001835563456</cas:user> </cas:authenticationSuccess> </cas:serviceResponse> I've put a breakpoint at OAuthAuthenticationMetaDataPopulator and have verified that the informations about the logged user are in memory but I don't know what I'm doing wrong so that this attributes are not being sent to client. Any tips? Also, how do I know the available attribute names in order to config in allowedAttributes? Thanks! Frederico Zveiter -- 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
