Announcement Announcement Module
Collapse
No announcement yet.
Custom filters in multiple files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom filters in multiple files

    Hi, I want to migrate my application from Spring Security 2 to version 3 because of better API. In fact, I've got trouble with custom filters.

    In Spring Security 2.0 I can have multiple XML contexts with custom filters defined for example like:

    Code:
      <bean id="myPreAuthenticatedProcessingFilter"
            class="test.MyPreAuthenticatedProcessingFilter">
        <security:custom-filter position="PRE_AUTH_FILTER"/>
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="authenticationDetailsSource" ref="myPreDetailsSource"/>
      </bean>
    where MyPreAuthenticatedProcessingFilter extends AbstractPreAuthenticatedProcessingFilter. In 3.0 the security:custom-filter element was moved to security:http element.

    Is there any solution to configure custom filters in multiple files in 3.0 version?
    Last edited by Bartłomiej Chmielewski; Jun 24th, 2010, 07:14 AM.

  • #2
    I too have this same problem. Must a <custom-filter> element exist only inside a <http> element? The schema suggests so, but just wish to confirm.

    Comment


    • #3
      Yes, it has to go inside the <http> element. Otherwise (amongst other things) we would not be able to support multiple filter chains in the namespace.

      Comment

      Working...
      X