I use Spring Security 3.0 and I would like to define a Basic Authentication filter only on a specific subset of URLs in my application.
Is it possible to add a pattern to custom-filters ?
I would like to add a pattern attribute like this :
<security:custom-filter ref="basicAuthenticationFilter" position="BASIC_AUTH_FILTER" pattern="/services/**"/>
I saw it is possible to use filters attribute on intercept-url but I would not have to list them all.
I used a
filer-chain-mapto solve this issue.There might be a better solution though.