Add intercept-url@request-matcher-ref #4097

Closed
rwinch opened this Issue Oct 19, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@rwinch
Member

rwinch commented Oct 19, 2016

It would be beneficial to allow intercept-url to be configured using a reference to a RequestMatcher. For example:

<http>
    <http-basic/>
    <intercept-url request-matcher-ref="matcherRef" access="denyAll"/>
</http>

<user-service>
    <user name="user" password="password" authorities="ROLE_USER"/>
</user-service>

<b:bean id="matcherRef" class="org.springframework.security.web.util.matcher.AntPathRequestMatcher"
    c:pattern="/foo"
    c:httpMethod="GET"
    c:caseSensitive="false"/>

@rwinch rwinch added this to the 4.2.0 RC1 milestone Oct 19, 2016

@rwinch rwinch self-assigned this Oct 19, 2016

@rwinch rwinch closed this in af9139b Oct 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment