@Bean
    @ConditionalOnMissingBean(name = "casMultitenancyEndpointConfigurer")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public CasWebSecurityConfigurer<HttpSecurity> casMultitenancyEndpointConfigurer() {
        return new CasWebSecurityConfigurer<>() {
            @Override
            @CanIgnoreReturnValue
            public CasWebSecurityConfigurer<HttpSecurity> configure(final HttpSecurity http) throws Exception {
                http.authorizeHttpRequests(customizer -> {
                    val authEndpoints = PathPatternRequestMatcher.withDefaults().matcher("/tenants/**");
                    customizer.requestMatchers(authEndpoints).permitAll();
                });
                return this;
            }
        };
    }
This is {@link CasCoreMultitenancyAutoConfiguration}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-multitenancy/src/main/java/org/apereo/cas/config/CasCoreMultitenancyAutoConfiguration.java