Peter Farkas
Peter Farkas
You can add both a credential provider and a http request interceptor to the rest client: ```java RestClient.builder(HttpHost.create("url")) .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(elasticCredentialsProvider) .addInterceptorFirst((HttpRequestInterceptor) (request, context) -> { request.addHeader("Authorization", value); }) )...
I have implemented Proxy authentication inside the interceptor before, that should work for you as well. It runs before every call to the Elastic cluster, so you can set custom...