Mam skonfigurowanego RestTemplate dokładnie jak tutaj: https://www.baeldung.com/resttemplate-digest-authentication
Problem jest wtedy gdy dołożę
RestTemplate restTemplate = new RestTemplate(requestFactory);
restTemplate.getInterceptors().add((request, body, execution) -> {
request.getHeaders().add("X-Name", "name");
return execution.execute(request, body);
});
wtedy po dołożeniu tego dostaje 401 Unauthorized. Bez dokładania działa ok, Korzystam też z org.apache.httpcomponents.client5:httpclient5, spring 6, springboot 3, java 21