Results 1 to 2 of 2

Thread: Write cookie with addition of filter in filterChainProxy?

  1. #1

    Default Write cookie with addition of filter in filterChainProxy?

    I would like to write out a cookie to the client on a successful login. I am thinking that I can add my filter to the filterChainProxy, after the authenticationProcessingFilter.

    Am I correct that this is how it works?
    Thanks!


    <bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">
    <property name="filterInvocationDefinitionSource">
    <value>
    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
    PATTERN_TYPE_APACHE_ANT
    /**=httpSessionContextIntegrationFilter,logoutFilte r,authenticationProcessingFilter,myCookieFilter,se curityContextHolderAwareRequestFilter,rememberMePr ocessingFilter,anonymousProcessingFilter,exception TranslationFilter,filterInvocationInterceptor
    </value>
    </property>
    </bean>

    <bean id="myCookieFilter" class="org.authsum.MyCookieFilter"/>

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    If you want to add a filter to the filter chain, then yes that's it.
    The filters will then be invoked in the order they are specified, with standard FilterChain behaviour being respected (a Filter can elect not to proceed with the chain if it wishes to end processing).
    http://www.acegisecurity.org/docbook/acegi.html#filters

Posting Permissions

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