@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = TenantExtractor.BEAN_NAME)
    public TenantExtractor tenantExtractor(
        final CasConfigurationProperties casProperties,
        final ConfigurableApplicationContext applicationContext,
        @Qualifier(TenantsManager.BEAN_NAME)
        final TenantsManager tenantsManager) {
        return new DefaultTenantExtractor(tenantsManager, applicationContext, casProperties);
    }
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