Jesper Zedlitz wrote: > When I try to access a secured page it works fine and I get to the login > page. After submitting the login form I will be redirected > to /j_acegi_security_check > But how do I wire this URL to Acegi? > I suppose I need a filter that processes the URL starting with "/j_acegi_security_check". So I added this filter and filter-mapping to the web.xml: <filter> <filter-name>AcegiFilter</filter-name> <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class> <init-param> <param-name>targetClass</param-name> <param-value>org.acegisecurity.ui.webapp.AuthenticationProcessingFilter</param-value> </init-param> </filter> <filter-mapping> <filter-name>AcegiFilter</filter-name> <url-pattern>/j_acegi_security_check</url-pattern> </filter-mapping>
To create an instance of AuthenticationProcessingFilter I declared this bean in Spring's applicationContext.xml: <bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter"> <property name="authenticationManager" ref="authenticationManager"/> <property name="authenticationFailureUrl value="/LoginFailed.html"/> <property name="defaultTargetUrl" /> <property name="filterProcessesUrl" value="/j_acegi_security_check"/> </bean> But there is still something missing: the AuthenticationProcessingFilter needs an AuthenticationManager. Any ideas how to configure that? Or is an AuthenticationProcessingFilter the wrong filter? Jesper -- Jesper Zedlitz E-Mail : [EMAIL PROTECTED] Homepage : http://www.zedlitz.de ICQ# : 23890711 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]