You can also set up cas with spring security using spring security's preauthentication. The example from CAS's wiki is https://wiki.jasig.org/display/CASC/Using+the+CAS+Client+3.1+with+Spring+Security.
I found this more versatile. In either case you will probably need to write a userservice for the roles. If you are assuming CAS is always correct and there is only one type of user you can do this very simply. If you need different roles based on attributes returned by CAS this can get harder. Nancy -----Original Message----- From: Richard Frovarp [mailto:[email protected]] Sent: Tuesday, May 06, 2014 4:45 PM To: [email protected] Subject: Re: [cas-user] CAS Spring security On 05/06/2014 03:50 PM, Rakesh wrote: > Hi, > > We have couple of spring application that we would like to integrate with > CAS. Is there a sample configuration (like CAS - Java helloworld example) > that I could look at to get an idea as to what I need to do to achieve this > integration. > > Thanks, > Rakesh > > > Spring Security has sample applications, which does include a CAS sample. https://github.com/spring-projects/spring-security/tree/master/samples/cas -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
