grails-spring-security-core icon indicating copy to clipboard operation
grails-spring-security-core copied to clipboard

Support (+) on JOINED_FILTERS

Open robertoschwald opened this issue 9 years ago • 0 comments

It would be handy to also support (+) on JOINED_FILTERS, e.g. for BasicAuth on a url-pattern, otherwise you need to state the whole default filter chain, or need to add the new filter using SpringSecurityUtils.clientRegisterFilter.

(+) should allow to add to the start or tail of the list, depending on its position relatively to JOINED_FILTERS.

e.g.:

[pattern:'/api/**', filters: '+myFilter, JOINED_FILTERS, -securityContextPersistenceFilter, -exceptionTranslationFilter'],

In this example, a myFilter is added to the head of the list.

robertoschwald avatar Jun 29 '16 11:06 robertoschwald