@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        val clients = WebUtils.getWsFederationDelegatedClients(requestContext, WsFedClient.class);
        val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(requestContext);
        clients
            .stream()
            .filter(client -> client.getAutoRedirectType() == DelegationAutoRedirectTypes.SERVER)
            .findFirst()
            .ifPresent(Unchecked.consumer(client -> {
                val url = StringUtils.prependIfMissing(serverProperties.getServlet().getContextPath(), "/")
                          + StringUtils.prependIfMissing(client.getRedirectUrl(), "/");
                LOGGER.debug("Redirecting to [{}] for WS client [{}]", url, client.getName());
                response.sendRedirect(url);
            }));
        return null;
    }
This is {@link WsFederationClientRedirectAction}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationClientRedirectAction.java