protected void produceDelegatedAuthenticationClientsForContext(final RequestContext context) throws Throwable {
        val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(context);
        val providers = singleSignOnEvaluator.configurationContext()
            .getDelegatedClientIdentityProvidersProducer().produce(context);
        LOGGER.trace("Delegated authentication providers are finalized as [{}]", providers);
        WebUtils.createCredential(context);
        if (HttpStatus.resolve(response.getStatus()).is2xxSuccessful()) {
            singleSignOnEvaluator.configurationContext()
                .getDelegatedClientIdentityProviderConfigurationPostProcessor()
                .process(context, providers);
            if (!singleSignOnEvaluator.singleSignOnSessionExists(context)) {
                handleServerAutoRedirectIfAny(context, providers);
            }
        }
    }
This is {@link DelegatedAuthenticationGenerateClientsAction}.

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