attribute release in protocol 2.0

Description

When using the 2.0 jsp protocol,
for the service registry component of CAS, if I specify attributes in its list of allowed attributes (allowedAttributes), CAS doesn't return the values of the configured attributes but still return the full list described in the resultAttributeMapping.

When using the 3.0 jsp protocol, the allowedAttributes will be taken into consideration !!

Replacing the casServiceValidationSuccess.jsp for 2.0 by 3.0 solved the problem

deployerConfigContext.xml :

<bean id="attributeRepository"
...
<property name="resultAttributeMapping">
<map>
<entry key="uid" value="uid" />
<entry key="mail" value="mail" />
<entry key="displayName" value="displayName" />
<entry key="givenName" value="givenName" />
<entry key="sn" value="sn" />
</map>
</property>
----------- <bean id="serviceRegistryDao"
...
<bean class="org.jasig.cas.services.RegisteredServiceImpl">
<property name="id" value="0" />
<property name="name" value="TESTPROXY" />
<property name="description" value="test proxy" />
<property name="serviceId" value="https://xxxx.xx.php" />
<property name="allowedAttributes">
<list>
<value>uid</value>
<value>mail</value>
</list>
</property>
<property name="allowedToProxy" value="true" />
</bean>

Environment

cas 4.0.6 - ldap - phpCAS

Activity

Show:

Details

Assignee

Reporter

Components

Affects versions

Priority

Created November 23, 2015 at 5:02 PM
Updated November 23, 2015 at 5:02 PM