Announcement Announcement Module
Collapse
No announcement yet.
Write cookie with addition of filter in filterChainProxy? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X