Hello,
I have a web application that uses Spring Security configured for CAS. From the
many examples I found online on how to set this up, you can configure a
"authenticationFailureUrl" parameter in the casProcessingFilter bean, e.g.:
<bean id="casProcessingFilter"
class="org.springframework.security.ui.cas.CasProcessingFilter"
p:authenticationManager-ref="casAuthenticationManager"
p:authenticationFailureUrl="/badLogin.jsp"
p:alwaysUseDefaultTargetUrl="true"
p:filterProcessesUrl="/j_spring_cas_security_check"
p:defaultTargetUrl="/">
<sec:custom-filter after="CAS_PROCESSING_FILTER" />
</bean>
The application works great when I provide valid credentials to CAS. I get
redirected to the service specified in the request. However, by default, the
casLoginView.jsp is redisplayed when invalid credentials are given (with an
error message informing the user of the failed login attempt). CAS does not
redirect the user back to the service if login fails, so where does the
"authenticationFailureUrl" option come into play? I'm new to CAS and Spring
Security overall, so if there's something obvious I'm missing, I would
appreciate any clarification.
Thanks,
E.
--
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