Announcement Announcement Module
Collapse
No announcement yet.
[Q] intercept-url Configuration Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Q] intercept-url Configuration

    Maybe this is not the correct way to do it, but I need to utilize a different defaultTargetUrl that is dependent upon the url that the user requested.

    I would like to define multiple AuthenticationProcessingFilters and then reference the correct one in the filters parameter of the intercept-url. However, it is not clear to me if I can do this or how to reference them. Perhaps by bean name?

    Thanks in Advance,
    Ken

  • #2
    You can extend AuthenticationProcessingFilter and override determineTargetUrl(HttpServletRequest request) method.
    Then configure extended filter:

    Code:
    <beans:bean id="myFilter" class="com.mycompany.MySpecialAuthenticationFilter">
    <custom-filter position="AUTHENTICATION_PROCESSING_FILTER"/>
    </beans:bean>

    Comment


    • #3
      [Q] intercept-url Configuration

      I thought about doing it that way, but it really adds to the complexity because I want the implementation to be tied to a url pattern and that pattern is already configured in the intercept-url.

      Comment

      Working...
      X