Hi,
I have been using Acegi's exceptionMappings on the AuthenticationProcessingFilter to redirect users to a Change Password page when a CredentialsExpiredException occurs
How do do the equivalent with Spring Security 2?HTML Code:<bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter"> <property name="authenticationManager" ref="authenticationManager" /> <property name="authenticationFailureUrl" value="/acegilogin.jsp?login_error=1" /> <property name="exceptionMappings"> <props> <prop key="org.acegisecurity.CredentialsExpiredException">/login/changePassword.htm</prop> </props> </property> <property name="defaultTargetUrl" value="/" /> <property name="filterProcessesUrl" value="/j_acegi_security_check" /> </bean>
below is my current configuration.
Thanks,HTML Code:<http access-decision-manager-ref="accessDecisionManager" xmlns="http://www.springframework.org/schema/security"> <intercept-url pattern="/app/**" access="IS_AUTHENTICATED_FULLY" /> <intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" /> <form-login login-page="/login.jsp" authentication-failure-url="/login.jsp?login_error=1" default-target-url="/" /> <http-basic /> <anonymous /> <logout /> </http>
Gordon.


. We definitely don't want to rush into adding things because removing them later is much harder. The intention isn't that the namespace should support all configuration options - you always have the option of using a traditional bean instead (or a post-processor, as I've described above). 