Please find the request details :
We are using RestTemplate as Java Client
dataToSign:
(request-target): get /v1/groups
host: rms-world-check-one-api-pilot.thomsonreuters.com
date: Mon, 09 Sep 2019 08:13:42 GMT
Hmac : MRdjL0i+Rj/gNsX9LjLfraF5B1ztnbPArtqL/ZuyYdU=
authorisation :
Signature keyId="XXX",algorithm="hmac-sha256",headers="(request-target) host date",signature="MRdjL0i+Rj/gNsX9LjLfraF5B1ztnbPArtqL/ZuyYdU="
XXX=Api Key
13:43:46.924 [main] DEBUG org.springframework.web.client.RestTemplate - HTTP GET https://rms-world-check-one-api-pilot.thomsonreuters.com/v1/groups
13:43:46.988 [main] DEBUG org.springframework.web.client.RestTemplate - Accept=[text/plain, application/json, application/*+json, */*]
13:43:48.631 [main] DEBUG org.springframework.web.client.RestTemplate - Response 401 UNAUTHORIZED
Note : Its working using post man collection correctly