Modifying CAS Client to extract SAML attributes

To retrieve the value of CAS attributes released to your service, you will need to use Saml11AuthenticationFilter for authentication and Saml11TicketValidationFilter for validation.

The link for  Java CAS client example provided by jasig can be found here . There are some updates needed which are provided below.

  1. To request attributes to be released, please create request here under request Type Choose ” Make changes to an existing application/SP”
  2. The following jar files are needed for SAML authentication and validation. The versions and combination of jars could change based on your application jars:




  3. Change CAS authentication filter and validation filter as shown in the web.xml sample provided as attachement.
  4.  Use the snippet of code attached to retrieve the attributes and their values.

Article Attachments

Related Articles