@Override
        public <O extends BasicAuthenticationFilter> O postProcess(final O object) {
            val patternsToIgnore = getAllowedPatternsToIgnore()
                .stream()
                .map(url -> PathPatternRequestMatcher.withDefaults().matcher(url))
                .collect(Collectors.toSet());
            object.setAuthenticationConverter(new BasicAuthenticationConverter() {
                @Override
                public UsernamePasswordAuthenticationToken convert(final HttpServletRequest request) {
                    val requestIsNotIgnored = patternsToIgnore.stream().noneMatch(requestMatcher -> requestMatcher.matches(request));
                    return requestIsNotIgnored ? super.convert(request) : null;
                }
            });
            return object;
        }
This is {@link CasWebSecurityConfigurerAdapter}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-webconfig/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java