@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "samlIdentityProviderEntityParser")
    public BeanContainer<SamlIdentityProviderEntityParser> samlIdentityProviderEntityParser(
        final CasConfigurationProperties casProperties,
        @Qualifier(DelegatedIdentityProviders.BEAN_NAME)
        final DelegatedIdentityProviders identityProviders) {
        val parsers = new ArrayList<SamlIdentityProviderEntityParser>();

        val resource = casProperties.getAuthn().getPac4j().getSamlDiscovery().getResource();
        resource
            .stream()
            .map(SpringResourceProperties::getLocation)
            .filter(Objects::nonNull)
            .forEach(Unchecked.consumer(res -> parsers.add(new SamlIdentityProviderEntityParser(res))));
        
        parsers.add(new SamlIdentityProviderEntityParser(identityProviders));
        return BeanContainer.of(parsers);
    }
This is {@link CasSamlIdentityProviderDiscoveryAutoConfiguration}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp-discovery/src/main/java/org/apereo/cas/config/CasSamlIdentityProviderDiscoveryAutoConfiguration.java