@Override
    public List<DelegatedAuthenticationCandidateProfile> resolve(final RequestContext context,
                                                                 final ClientCredential credentials) throws Throwable {
        val profile = resolveUserProfile(context, credentials);
        val args = new Object[]{context, credentials, profile, LOGGER};
        return watchableScript.execute(args, List.class);
    }
This is {@link GroovyDelegatedClientAuthenticationCredentialResolver}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/authentication/principal/GroovyDelegatedClientAuthenticationCredentialResolver.java