Richard,

There are two ways to do it.  Either scenario requires that you utilize the
Services Management tool to release the attributes to the service.

Your two options are:
1. Use the SAML1.1 response (which the Java Client supports).
2. Modify the JSP pages for the CAS2 responses which seems like the way
you're leaning towards.  The attributes should be available on the Principal
object which is available from the Authentication (the response should show
you how to gain access to that).

Cheers,
Scott


On Tue, May 5, 2009 at 1:27 AM, Spruit, Richard
<[email protected]>wrote:

>  In a CAS-client, it is possible to add extra attributes by using the
> attributeReposotory-bean, like this:
>
>
>
>                 <bean id="attributeRepository"
>
>
> class="org.jasig.services.persondir.support.StubPersonAttributeDao">
>
>                                 <property name="backingMap">
>
>                                                 <map>
>
>                                                                 <entry
> key="userIdExtended" value="userIdExtended" />
>
>                                                                 <entry
> key="role" value="userRole" />
>
>                                                 </map>
>
>                                 </property>
>
>                 </bean>
>
>
>
> Currently, I am modifying the CAS-server jsp-pages (like
> casGenericSucces.jsp) and I would like to show the values of
> ‘userIdExtenden’ and ‘role’ on this page. How can I do this?
>
>
>
> Appreciate any help, regards,
>
>
>
> Richard
>
>
>
> Please help Logica to respect the environment by not printing this email /
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
> imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen
> Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a
> respeitar o ambiente não imprimindo este correio electrónico. This e-mail
> and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or be
> subject to legal privilege. It should not be copied, disclosed to, retained
> or used by, any other party. If you are not an intended recipient then
> please promptly delete this e-mail and any attachment and all copies and
> inform the sender. Thank you.
>
> --
> 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

Reply via email to