@Bean
    @ConditionalOnMissingBean(name = "restSamlRegisteredServiceMetadataResolver")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public SamlRegisteredServiceMetadataResolver restSamlRegisteredServiceMetadataResolver(
        final CasConfigurationProperties casProperties,
        @Qualifier(OpenSamlConfigBean.DEFAULT_BEAN_NAME)
        final OpenSamlConfigBean openSamlConfigBean) {
        val idp = casProperties.getAuthn().getSamlIdp();
        return new RestfulSamlRegisteredServiceMetadataResolver(idp, openSamlConfigBean);
    }
This is {@link SamlIdPRestfulMetadataConfiguration}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-metadata-rest/src/main/java/org/apereo/cas/config/SamlIdPRestfulMetadataConfiguration.java