@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public SamlIdPMetadataGenerator samlIdPMetadataGenerator(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("gitIdPMetadataRepositoryInstance")
        final GitRepository gitIdPMetadataRepositoryInstance,
        @Qualifier("samlIdPMetadataGeneratorConfigurationContext")
        final SamlIdPMetadataGeneratorConfigurationContext ctx) {
        return BeanSupplier.of(SamlIdPMetadataGenerator.class)
            .when(CONDITION_ENABLED.given(applicationContext.getEnvironment()))
            .and(CONDITION_URL.given(applicationContext.getEnvironment()))
            .supply(() -> new GitSamlIdPMetadataGenerator(ctx, gitIdPMetadataRepositoryInstance))
            .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