Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.2.3
-
None
-
Unknown
Description
Adding an AuthorizationPolicy object with AuthorizationType set to "Bearer" to the Client HTTPConduit object has no effect.
No "Authorization: Bearer xxx" header is added to the cxf request.
Workaround: add the Authorization header directly:
client.getRequestContext().put(Message.PROTOCOL_HEADERS, authorizationHeader);
and authorizationHeader containing the desired header/value.