@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "gitIdPMetadataRepositoryInstance")
    public GitRepository gitIdPMetadataRepositoryInstance(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(GitRepository.class)
            .when(CONDITION_ENABLED.given(applicationContext.getEnvironment()))
            .and(CONDITION_URL.given(applicationContext.getEnvironment()))
            .supply(() -> {
                val git = casProperties.getAuthn().getSamlIdp().getMetadata().getGit();
                return GitRepositoryBuilder.newInstance(git).build();
            })
            .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