Dashboard > CAS Clients > Clients > Seraph as CAS Client > CasSeraphAuthenticator
Log In   View a printable version of the current page.
CasSeraphAuthenticator
Added by Ingomar Otter , last edited by Scott Battaglia on Feb 01, 2007  (view change)
Labels: 


"Version Compatibility"

This client has been successfully used in versions of Confluence up to 2.0 Atlassian modified authentication to utilize the new Atlassian-User framework in Confluence 2.1. You should use the Confluence CAS Client for this and later versions.

About

The CASSeraphAuthenticator is a CAS aware Seraph authenticator (a subclass of com.atlassian.seraph.auth.DefaultAuthenticator).

Methods

It has basically three methods:

method description
getUser() returns the name of the current CAS user (and stores it in the session)
login() checks the session for CAS credentials for a successful login, if not found then attempts validate the login request via the super class
logout() invalidates any data stored in the session and logs you out of your seraph session. Note: this version DOES NOT destroy your CAS single-sign on session

Notes

Versions of seraph before 0.6.5 may require the method signatures to be changed to use os_user's User object instead of java's Principal.

Attached is a developmental milestone of the authenticator used at Rutgers University.

Dependencies

Dependency Where to get it
casclient.jar see Yale CAS client distribution
log4j-*.jar take this from the product distribution seraph came with
osuser-*.jar take this from the product distribution seraph came with
seraph*.jar take this from the product distribution seraph came with
servlet.jar application server distribution

I've attached a somewhat edited version that has hooks to DefaultAuthenticator to enable Anonymous access and Confluence account creation. Was compiled against Seraph 0.6.5 so will probably need to be changed to use Principal if run against Confluence > 1.1.2

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