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


Seraph is an open source web application security framework. It is developed and maintained primarily by Atlassian, who use it in their products, JIRA and Confluence.

As Confluence and JIRA users, we liked them to be CASified as well.
Thanks to the well structured nature of the underlying Serpah, this is not a big deal:

  1. Deploy the application using the CASFilter from the CAS Client package. Configure the filter in web.xml. This is documented in the CAS client docs.
  2. 'Create' and deploy a CAS-enabled CasSeraphAuthenticator in the application in question
  3. Replace the default with the CASified authenticator in seraph-config.xml:
    e.g.
    <!--  <authenticator class="com.atlassian.seraph.auth.DefaultAuthenticator"/> -->
    <authenticator class="de.valtech.etc.jira.JiraCasAuthenticator"/>
  4. Add the CAS logout url to seraph-conf.xml:
    <init-param>
               <param-name>logout.url</param-name>
               <param-value>https://x.y.valtech.de/cas/logout</param-value>
         </init-param>

    (Remember, the login URL and all others are defined in web.xml in the filter config: Using CAS with Java

  5. One more thing: In order to validate the CAS ticket wihtout fiddeling with SSLlibs and that like, you presumable will have to make the public key of the CAS server available to the client. Because I am a lazy person, I just added it to the JVM's keystore:
    keytool -import -storetype jks -keystore $JDK/jre/lib/security/cacert -file $CAS_HOME/tmp/cert.pkcs7
    The default password for most JVMs's keystores is 'changeit'. The default password (which your security aware admin will have changed by now ) for the CAS certificates and keystore is 'security'

That should be it.

(Disclaimer: I am writing this down from the top of my head. Please drop me a line if you run into trouble so I can try to remember a little harder. Ingomar Otter)

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