@Bean
        public FilterRegistrationBean<SecurityContextHolderFilter> securityContextHolderFilter(
            @Qualifier("securityContextRepository")
            final SecurityContextRepository securityContextRepository) {
            val bean = new FilterRegistrationBean<SecurityContextHolderFilter>();
            bean.setFilter(new SecurityContextHolderFilter(securityContextRepository));
            bean.setUrlPatterns(CollectionUtils.wrap("/*"));
            bean.setName("Spring Security Context Holder Filter");
            bean.setAsyncSupported(true);
            bean.setOrder(Ordered.HIGHEST_PRECEDENCE + 1);
            return bean;
        }
This is {@link CasWebSecurityConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-webconfig/src/main/java/org/apereo/cas/config/CasWebSecurityConfiguration.java