@GetMapping(path = "/feed", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Get identity provider discovery feed",
        parameters = @Parameter(name = "entityID", in = ParameterIn.QUERY, required = false, description = "Filter by entity id"))
    public Collection<SamlIdentityProviderEntity> getDiscoveryFeed(
        final HttpServletRequest request,
        final HttpServletResponse response,
        @RequestParam(value = "entityID", required = false)
        final String entityID) {
        val feed = samlIdentityProviderDiscoveryFeedService.getDiscoveryFeed(request, response);
        if (StringUtils.hasText(entityID)) {
            return feed
                .stream()
                .filter(idp -> RegexUtils.find(entityID, idp.getEntityID()))
                .toList();
        }
        return feed;
    }
Gets discovery feed.

@param request  the request
@param response the response
@param entityID the entity id
@return the discovery feed
support/cas-server-support-saml-idp-discovery/src/main/java/org/apereo/cas/web/SamlIdentityProviderDiscoveryFeedController.java