protected void initializeClientIdentityProvider(final IndirectClient client, final RequestContext context) throws Throwable {
        if (!client.isInitialized()) {
            val currentService = WebUtils.getService(context);
            LOGGER.trace("Initializing client [{}] with request parameters [{}] and service [{}]",
                client, context.getRequestParameters(), currentService);
            client.init();
        }
        FunctionUtils.throwIf(!client.isInitialized(), DelegatedAuthenticationFailureException::new);
    }
This is {@link DefaultDelegatedClientIdentityProviderConfigurationProducer}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/web/flow/DefaultDelegatedClientIdentityProviderConfigurationProducer.java