The JA-SIG CAS Client for Java 3.1 is a reworking of the original Yale CAS Client and the newer JA-SIG CAS Client for Java 3.0. Both were excellent for different reasons: the Yale client had minimal dependencies and could get you up and running quickly while the JA-SIG client offered a more flexible configuration and conformed to more modern "best practices" but came with a large number of dependencies.
The JA-SIG CAS Client for Java 3.1 looks to offer the best of both worlds. In its default configuration mode, it can be configured completely in the web.xml and has only one dependency, Commons Logging, which most applications use anyway. However, if you need the more advanced configuration you can easily configure the CAS client using Spring (and take its jars along with you ).
Going forward, the JA-SIG CAS Client for Java 3.1 will be included in projects requiring a Java CAS Client, such as Spring Security.
Configuring the CAS Client
Let's take a look at how to configure the JA-SIG CAS Client for Java 3.1:
Order of Required Filters
How to configure the filters is described on the pages above. This section details the order in which the filters should appear:
Recommend Logout Procedure
The CAS Client for Java has no code to help you handle log out. The client merely places objects in session. Therefore, we recommend you do a session.invalidate() call when you log a user out. However, that's entirely your application's responsibility.
The CAS Client for Java team has recommended guidelines for logout pages for CAS Clients. We recommend that text similar to the following appear when the application's session is ended.
Git source code access
Point your favorite git client at the link below:
Page: Configuring Confluence with JASIG CAS Client for Java 3.1 Page: Configuring Jira with JASIG CAS Client for Java 3.1 Page: Configuring Single Sign Out Page: Configuring the Jasig CAS Client for Java in the web.xml Page: Configuring the JA-SIG CAS Client for Java using JNDI Page: Configuring the JA-SIG CAS Client for Java using Spring Page: JAAS Integration Page: JA-SIG Java Client Simple WebApp Sample Page: Obtaining from Maven2 Repository Page: Saml11TicketValidationFilter Example Page: Tomcat Container Authentication Page: Using the CAS Client 3.1 with Spring Security Page: Using the CAS Client in a Distributed Environment Page: web.xml for Tomcat 5.5 Tomcat Manager