spring-security/samples/cas
Luke Taylor 45c54c558c Updated build to use maven.springframework.org deps 2009-05-13 06:16:05 +00:00
..
client Updated build to use maven.springframework.org deps 2009-05-13 06:16:05 +00:00
server Updated version number from 2.5.0-SNPSHOT to 3.0.0.CI-SNAPSHOT 2009-04-22 12:55:52 +00:00
Readme.txt Update CAS server information to latest version 2009-01-03 05:20:22 +00:00
pom.xml Updated version number from 2.5.0-SNPSHOT to 3.0.0.CI-SNAPSHOT 2009-04-22 12:55:52 +00:00

Readme.txt

There are two subdirectories in this project;

server - this is not a real maven sub-project in the sense that it builds anything. It is just here to allow you to
         conveniently run the CAS server using the maven Jetty plugin with our preconfigured SSL certificates.

client - this contains the actual sample web application which uses the cas server for authentication. It uses the same
         certificates. In practice, the CAS server would likely be running on a different machine and both client and
         server would have different certificates issued to the server hostname.

Running the CAS Server
-----------------------

You first need to download the CAS server 3.3.1 distribution from

http://www.ja-sig.org/products/cas/downloads/index.html

You only need the modules/cas-server-webapp-3.3.1.war web application file from the distribution. Copy this to the
"server" directory inside the one that contains this readme file (i.e. copy it to samples/cas/server).

You can then run the CAS server (from the same) by executing the maven command

mvn jetty:run-war

This will start the server on

https://localhost:9443/cas

If you point your browser at this URL, you should see the CAS login screen.


Running the Client Application
-------------------------------

Leave the server running and start up a separate command window to run the sample application. Change to the directory
samples/cas/client and execute the command

mvn jetty:run


This should start the sample application on

http://localhost:8080/cas-sample/

Try to access the secure page (as with the other samples) and you should be redirected to the CAS server to log in. Note
that the sample authentication module that comes with the CAS server webapp will authenticate any user whose password
matches the username. So you have to log in here as rod/rod, dianne/dianne etc. Obviously the usernames must still match
those listed in the application's user-service. 


$Id$