@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public SamlIdPMetadataLocator samlIdPMetadataLocator(
        @Qualifier("samlIdPMetadataGeneratorCipherExecutor")
        final CipherExecutor samlIdPMetadataGeneratorCipherExecutor,
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("samlIdPMetadataCache")
        final Cache<String, SamlIdPMetadataDocument> samlIdPMetadataCache,
        @Qualifier("gitIdPMetadataRepositoryInstance")
        final GitRepository gitIdPMetadataRepositoryInstance) {
        return BeanSupplier.of(SamlIdPMetadataLocator.class)
            .when(CONDITION_ENABLED.given(applicationContext.getEnvironment()))
            .and(CONDITION_URL.given(applicationContext.getEnvironment()))
            .supply(() -> new GitSamlIdPMetadataLocator(gitIdPMetadataRepositoryInstance,
                samlIdPMetadataCache, samlIdPMetadataGeneratorCipherExecutor, applicationContext))
            .otherwiseProxy()
            .get();
    }
This is {@link SamlIdPGitIdPMetadataConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-metadata-git/src/main/java/org/apereo/cas/config/SamlIdPGitIdPMetadataConfiguration.java