Closed BartusZak closed 3 years ago
Hi, @BartusZak 👋
I'll take a look when I find the time. If you're willing to investigate yourself, feel free to open a PR!
owner isn't getting time... lolzzz its being more than 5 months and same issue...
@FirdousNath Please take a look at the README:
This is not actively maintained. If you're looking for alternatives, check out aws_client. If you'd like to continue using this library and have a fix for an issue, I'll be happy to review PRs.
Possible it’s the same issue I faced https://github.com/arnemolland/sigv4/pull/18
Without needing that PR, you can fix it with (assuming it is the same problem):
client.request(url,
method: "PUT",
headers: {"Content-Type": "application/json; charset=utf-8"},
body: jsonBody,
);
Expected Behavior
AWS v4 Signature should be a valid signature for a request. Request should return endpoint response.
Current Behavior
Constructed AWS v4 Signature is not valid for POST request.
Request payload:
Response:
Possible Solution
Steps to Reproduce
POST
request with payload (payload content described above)Context (Environment)
Can't access
POST
API Gateway endpoint, secured withaws_iam
authorizer. Signature is correct for GET request.Detailed Description
Possible Implementation