@Override
    protected List<BaseClient> load() throws Exception {
        val restProperties = casProperties.getAuthn().getPac4j().getRest();
        val exec = HttpExecutionRequest
            .builder()
            .basicAuthPassword(restProperties.getBasicAuthPassword())
            .basicAuthUsername(restProperties.getBasicAuthUsername())
            .method(HttpMethod.valueOf(restProperties.getMethod().toUpperCase(Locale.ENGLISH).trim()))
            .url(restProperties.getUrl())
            .parameters(Map.of("type", restProperties.getType()))
            .headers(restProperties.getHeaders())
            .build();

        val response = HttpUtils.execute(exec);
        if (response != null && HttpStatus.valueOf(response.getCode()).is2xxSuccessful()) {
            try (val content = ((HttpEntityContainer) response).getEntity().getContent()) {
                val result = IOUtils.toString(content, StandardCharsets.UTF_8);
                if ("cas".equalsIgnoreCase(restProperties.getType())) {
                    return buildClientsBasedCasProperties(result);
                }
                return buildClientsBasedPac4jProperties(result);
            } finally {
                HttpUtils.close(response);
            }
        }
        return new ArrayList<>();
    }
This is {@link RestfulDelegatedIdentityProviderFactory}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/clients/RestfulDelegatedIdentityProviderFactory.java