Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 Spring Security 的 Grails 3 应用程序。我正在使用 pre_auth_filter 进行预身份验证。对于某些 url,我想单独绕过 pre_auth 过滤器。非常感谢任何帮助。
跳过过滤器的方式定义在application.groovy:
application.groovy
grails.plugin.springsecurity.filterChain.chainMap = [ [pattern: '/public/**', filters: 'none'], [pattern: '/exclude/**', filters: 'JOINED_FILTERS,-excludedFilter'] ]