@GetMapping(path = "/redirect")
    @Operation(summary = "Redirect to identity provider", parameters =
        @Parameter(name = "entityID", in = ParameterIn.QUERY, required = true, description = "The entity id"))
    public View redirect(
        @RequestParam("entityID")
        final String entityID,
        final HttpServletRequest httpServletRequest,
        final HttpServletResponse httpServletResponse) throws Throwable {
        val provider = samlIdentityProviderDiscoveryFeedService.getProvider(entityID, httpServletRequest, httpServletResponse);
        return new RedirectView('/' + provider.getRedirectUrl(), true, true, true);
    }
Redirect.

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