• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWS v4 authorization 403 error  RSS feed

 
paul a carron
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've created the below AWS v43 Authorization:



When my code is executed I get the following 403 message:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Error><Code>AccessDenied</Code><Message>Access Denied</Message><Resource>/<my bucket>/config/ignore-keys</Resource><RequestId>d302a469-f79f-4c97-85f7-165dcd87b233</RequestId><httpStatusCode>403</httpStatusCode></Error>


This message doesn't tell me very much but I can pass the url with the same credentials in Postman and the GET works. Is there anything I can do to resolvce this ro atleast investigate a little further?

I have noticed that the signature my Java application generates is different from the one generated by Postman. Could this be the issue. Or an I passing something incorrect to cause the different signature to be generated?

Cheers
Paul
 
paul a carron
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally got this figured out.

First off I needed to have a / at the beginning of my canonicalURI:



Secondly, the awsHeader I created was case sensitive. It needs to be a lower case "host":


Now that I've made those changes I can access the end point.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!