grails-spring-security-core
grails-spring-security-core copied to clipboard
Support (+) on JOINED_FILTERS
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.