Results 1 to 2 of 2

Thread: How to set authentication success handler and have my own target url resolver in 3.0

  1. #1

    Default How to set authentication success handler and have my own target url resolver in 3.0

    Hi,
    I am migrating to 3.0 now, but could not figure out how to set my own authentication success handler.

    This is how I defined the filter:
    <beans:bean id="authenticationFilter"
    class="org.springframework.security.web.authentica tion.UsernamePasswordAuthenticationFilter">
    <beansroperty name="authenticationManager" ref="authenticationManager"/>
    <beansroperty name="authenticationSuccessHandler" ref="customTargetUrlResolver"/>
    <beansroperty name="filterProcessesUrl" value="/j_spring_security_check"/>
    </beans:bean>

    authenticationSuccessHandler refer to a subclass of SavedRequestAwareAuthenticationSuccessHandler. I was hoping that right after authentication, this will be called, but it did..... so how do I configure it so that I can have my own custom target url resolver now in 3.0 ?

    thanks in advance,
    canal

  2. #2

    Default

    I figured this out:

    add this to <form-login>
    authentication-success-handler-ref="customTargetUrlResolver"/>

Posting Permissions

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