File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
plugin/src/main/groovy/grails/plugin/springsecurity Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ import grails.plugins.Plugin
5757import grails.util.Metadata
5858import groovy.util.logging.Slf4j
5959import org.grails.web.mime.HttpServletResponseExtension
60+ import org.springframework.boot.autoconfigure.security.SecurityProperties
6061import org.springframework.boot.web.servlet.FilterRegistrationBean
6162import org.springframework.boot.web.servlet.ServletListenerRegistrationBean
6263import org.springframework.cache.jcache.JCacheCacheManager
@@ -221,17 +222,7 @@ class SpringSecurityCoreGrailsPlugin extends Plugin {
221222 filter = ref(' springSecurityFilterChain' )
222223 urlPatterns = [' /*' ]
223224 dispatcherTypes = EnumSet . of(DispatcherType . ERROR , DispatcherType . REQUEST )
224-
225- // The filter chain has to be after grailsWebRequestFilter, but its order changed
226- // in 3.1 (from Ordered.HIGHEST_PRECEDENCE + 30 (-2147483618) to
227- // FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER + 30 (30))
228- String grailsVersion = Metadata . current. getGrailsVersion()
229- if (grailsVersion. startsWith(' 3.0' )) {
230- order = Ordered . HIGHEST_PRECEDENCE + 100
231- }
232- else {
233- order = 100 // FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER + 100
234- }
225+ order = SecurityProperties . DEFAULT_FILTER_ORDER
235226 }
236227
237228 if (conf. useHttpSessionEventPublisher) {
You can’t perform that action at this time.
0 commit comments