Hi,

I think this was already discussed but I wasn't able to find it.

I'd like to reduce the number of filters in web.xml to just one, say

<filter>
  <filter-name>Acegi Filter</filter-name>
  <filter-class>net.sf.acegisecurity.util.FilterToBeanProxy</filter-class>
  <init-param>
    <param-name>targetClass</param-name>
    <param-value>net.sf.acegisecurity.FilterChain</param-value>
  </init-param>
</filter>

And configure the chain of filters in the application context, something like

<bean id="filterChain" class="net.sf.acegisecurity.FilterChain">
  <property name="filters">
    <list>
      <ref local="channelProcessingFilter"/>
      <ref local="authenticationProcessingFilter"/>
      <ref local="basicProcessingFilter"/>
      <ref local="sessionIntegrationFilter"/>
      <ref local="securityEnforcementFilter"/>
    </list>
  </property>
  <property name="filterMappings">
    <list>
      <value>/*</value>
      <value>/*</value>
      <value>/*</value>
      <value>/*</value>
      <value>/*</value>
    </list>
  </property></bean>

Any thoughts?

Regards

Carlos Sanchez
A Coruņa, Spain
http://www.jroller.com/page/carlossg




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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