Dashboard > CAS Clients > Clients > CAS Client for Java 3.1
CAS Client for Java 3.1
Added by Scott Battaglia , last edited by Dale Ogilvie on Jun 05, 2008  (view change)
Labels: 
(None)


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:

  1. AuthenticationFilter
  2. TicketValidationFilter (whichever one is chosen)
  3. HttpServletRequestWrapperFilter
  4. AssertionThreadLocalFilter

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.

Recommended logout text

You have been logged out of APPLICATION NAME GOES HERE.

To log out of all applications, click here. (provide link to CAS server's logout)

Examples

Subversion source code access

Point your favorite subversion client (Tortoise is a great choice on windows) at the link below:

https://www.ja-sig.org/svn/cas-clients/java-client

Powered by a free Atlassian Confluence Open Source Project License granted to Java Architectures Special Interest Group. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators