Open damirarh opened 1 year ago
Imported comment written by Felipe Crescencio de Oliveira on 2021-06-17T21:38:29
Hi,
Thank you! Your post and this other post helped me a lot!
I had to set my Bearer token directly in Authorization header:
Map<string, list<string="">> headers2 = new HashMap<string, list<string="">>();
headers2.put("Authorization", Collections.singletonList(pass));
req_ctx.put(MessageContext.HTTP_REQUEST_HEADERS, headers2);
Imported
URL: https://www.damirscorner.com/blog/posts/20180907-ImplementingBasicAuthenticationWithCxf.html