Results 1 to 3 of 3

Thread: Custom Filter - FilterInvocationSecurityMetadataSource

  1. #1
    Join Date
    Feb 2013
    Posts
    11

    Default Custom Filter - FilterInvocationSecurityMetadataSource

    HI all,

    I am not sure about filterChainProxy

    I have spring security working fine in my application, but I need to load the ConfigAttributes from properties file..

    I know I need de create class implementing FilterInvocationSecurityMetadataSource.. then I made it.. after that

    When I was reading about this.. I saw in the documentation I have to declare filterchaeinProxy on application context xml.. like this..

    Code:
    <bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy">
      <constructor-arg>
        <list>
           <sec:filter-chain pattern="/**" filters="
               securityContextPersistenceFilterWithASCTrue,
               formLoginFilter,
               exceptionTranslationFilter,
               filterSecurityInterceptor" />
        </list>
      </constructor-arg>
    </bean>

    Do I really need to declare all these filters to use only one custom filter ?

    I want just pull my urls and the respective role from properties file..

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    The only alternative is to use the tip on the FAQ to use a BeanPostProcessor to deal with customizations that are not supported in the namespace.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3
    Join Date
    Feb 2013
    Posts
    11

    Default

    Thanks Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •