I am implementing a Spring MVC client to authenticate against a CAS server using Spring Security. I created a Spring Template Project in Eclipse (using the Spring Tool Suite), and I added the additional POM dependencies needed to work off of an existing project sample: https://fisheye.springsource.org/bro...ty.xml?hb=true
Right now, I am at the point where I can authenticate successfully, at which point the default CAS "Log In Successful" banner is shown (see attached screenshot) and the browser URL is https://localhost:8443/cas/login?tic...JbdIdqAMDs-cas.
For the life of me, I cannot figure out how to redirect back to my application. Before the user has to authenticate, the click on a link:
At which point they authenticate against CAS. However, the user is not redirected to the original destination ("secure/index.jsp"). I do have code in place that should supposedly handle this, however:
<a href="secure/index.jsp">Secure page</a>
...But it doesn't. I'm wondering if anyone can figure out why not? The rest of applicationContext-security.xml and web.xml can be viewed in the referenced link above. I would really appreciate the help.
<property name="authenticationManager" ref="authenticationManager" />
<property name="defaultFailureUrl" value="/casfailed.jsp" />
<property name="defaultTargetUrl" value="/secure/index.jsp" />