Hi,

I am having a problem with redirections when using j_acegi_security_check. I have followed the Contact sample's applicationContext-acegi-security.xml AuthenticationProcessingFilter configuration and this is how it looks like:

<bean id="authenticationProcessingFilter" class="net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilter"> <property name="authenticationManager"><ref bean="authenticationManager"/></property> <property name="authenticationFailureUrl"><value>/errorLogin.action</value></property> <property name="defaultTargetUrl"><value>/readUser.action</value></property> <property name="filterProcessesUrl"><value>/j_acegi_security_check</value></property> <property name="rememberMeServices"><ref local="rememberMeServices"/></property>
  </bean>

<bean id="authenticationProcessingFilterEntryPoint" class="net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint"> <property name="loginFormUrl"><value>/login.vm</value></property> <property name="forceHttps"><value>false</value></property>
  </bean>

I was able to make the Contacts sample run. But when I followed this sample with my login.vm page, the redirection is behaving inconsistently. Most of the time, it will not redirect to the "defaultTargetUrl" if properly authenticated and will not redirect to the "authenticationFailureUrl" if not authenticated, only a few times it does right thing and behaves wrongly like executing the errorLogin.action even if the authentication is correct. Any ideas?

Regards,

Jared

--
http://jaredtech.blogspot.com



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to