This project cas-openid-demo has been created to test the OpenId support in CAS. It’s composed of two modules :
- the cas-openid-client-demo module is the OpenId consumer : it’s a web app where the user can fill its OpenId identifier to be authenticated at the OpenId provider (it’s based on Spring MVC and uses the opendid4Java library)
- the cas-openid-server-demo module is the OpenId provider : it’s a CAS server customized with OpenId support : https://wiki.jasig.org/display/CASUM/OpenID.
To start quickly, build the project :
cd cas-openid-demo
mvn clean install
cd cas-openid-client-demo
mvn jetty:run
To test,
- call the http://localhost:8080/demoo url (at consumer)
- fill the form with http://localhost:8080/cas/openid/leleuj (replace leleuj by your username) and click the “Confirm” button (at consumer)
- authenticate at CAS server ( username / username, the password is equal to the login) (at provider)
- be redirected to the original web app where the text “Successfull authentication” is displayed ! (at consumer)
You can also deploy manually these two web applications in your favorite web applications server :
- cas-openid-client-demo on http://localhost:8080/demoo
- cas-openid-server-demo on http://localhost:8080/cas