Siva Allu

Getting authorization error

Discussion created by Siva Allu on Sep 7, 2017
Latest reply on Sep 8, 2017 by Davey Shafik

I have been getting below error

{
"type": "https://problems.purge.akamaiapis.net/-/pep-authn/request-error",
"title": "Bad request",
"status": 400,
"detail": "The authorization header does not have the right format",
"instance": "https://aka*******************************/ccu/v3/delete/url/staging",
"method": "POST",
"serverIp": "*************",
"clientIp": "**************",
"requestId": "*************",
"requestTime": "2017-09-07T20:29:19Z"
}

 

I am passing the following in the Authorization header

 

EG1-HMAC-SHA256 client_token=************************;access_token=************************;timestamp=20170907T20:25:07+0000;nonce=9825f0eb-0bbf-423f-afdf-dc2170afe77e;signature=******************************

The signature field is computed by using HMAC Base64 of timestamp field with client secret as the secret key.

 

Any idea on what I am doing wrong?

 

Outcomes