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 an HDRT ticket here under request category “CAS” and request type “Additional Attribute Release”
  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:
    cas-client-core-3.4.1.jar

    cas-client-support-saml-3.4.1.jar

    joda-time-2.9.9.jar

    jstl-1.2.jar

    slf4j-api-1.7.25.jar
  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