@Override
    public IPAddressIntelligenceResponse examineInternal(final RequestContext context, final String clientIpAddress) {
        HttpResponse response = null;
        try {
            val rest = adaptiveAuthenticationProperties.getIpIntel().getRest();

            val parameters = new HashMap<String, String>();
            parameters.put("clientIpAddress", clientIpAddress);

            val exec = HttpExecutionRequest.builder()
                .basicAuthPassword(rest.getBasicAuthPassword())
                .basicAuthUsername(rest.getBasicAuthUsername())
                .method(HttpMethod.GET)
                .url(SpringExpressionLanguageValueResolver.getInstance().resolve(rest.getUrl()))
                .parameters(parameters)
                .headers(rest.getHeaders())
                .build();

            response = HttpUtils.execute(exec);
            if (response != null) {
                val status = HttpStatus.valueOf(response.getCode());
                if (status == HttpStatus.FORBIDDEN || status == HttpStatus.UNAUTHORIZED) {
                    throw new AuthenticationException("Unable to accept response status " + status);
                }
                if (status == HttpStatus.OK || status == HttpStatus.ACCEPTED) {
                    return IPAddressIntelligenceResponse.allowed();
                }
                try (val content = ((HttpEntityContainer) response).getEntity().getContent()) {
                    val score = Double.parseDouble(IOUtils.toString(content, StandardCharsets.UTF_8));
                    return IPAddressIntelligenceResponse.builder()
                        .score(score)
                        .status(IPAddressIntelligenceResponse.IPAddressIntelligenceStatus.RANKED)
                        .build();
                }
            }
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        } finally {
            HttpUtils.close(response);
        }
        return IPAddressIntelligenceResponse.banned();
    }
This is {@link RestfulIPAddressIntelligenceService}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/adaptive/intel/RestfulIPAddressIntelligenceService.java