@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        return FunctionUtils.doUnchecked(() -> {
            val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);
            val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(requestContext);
            val clientName = DelegationWebflowUtils.getDelegatedAuthenticationClientName(requestContext);

            val webContext = new JEEContext(request, response);
            val client = identityProviders.findClient(clientName, webContext).map(IndirectClient.class::cast).orElseThrow();
            val config = providerConfigurationProducer.produce(requestContext, client).orElseThrow();

            val urlBuilder = new URIBuilder(config.getRedirectUrl());
            urlBuilder.addParameter(RedirectionActionBuilder.ATTRIBUTE_FORCE_AUTHN, Boolean.TRUE.toString());
            response.sendRedirect(urlBuilder.toString());
            return null;
        });
    }
This is {@link DelegatedAuthenticationClientRetryAction}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/actions/DelegatedAuthenticationClientRetryAction.java