@Bean
        @ConditionalOnMissingBean(name = "dataSourceSamlMetadata")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public DataSource dataSourceSamlMetadata(final CasConfigurationProperties casProperties) {
            val idp = casProperties.getAuthn().getSamlIdp().getMetadata();
            return JpaBeans.newDataSource(idp.getJpa());
        }
This is {@link SamlIdPJpaRegisteredServiceMetadataConfiguration}.

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