@Override
    public Collection<String> getEntityIds(final HttpServletRequest request,
                                           final HttpServletResponse response) {
        val context = new JEEContext(request, response);
        return identityProviders.findAllClients(context)
            .stream()
            .filter(SAML2Client.class::isInstance)
            .map(SAML2Client.class::cast)
            .peek(InitializableObject::init)
            .map(SAML2Client::getIdentityProviderResolvedEntityId)
            .collect(Collectors.toList());
    }
This is {@link DefaultSamlIdentityProviderDiscoveryFeedService}.

@author Sam Hough
@since 6.6.0
support/cas-server-support-saml-idp-discovery/src/main/java/org/apereo/cas/services/DefaultSamlIdentityProviderDiscoveryFeedService.java