awslabs/aws-sigv4-proxy

Add extra headers into the envelope

moltar opened this issue · 0 comments

Is there a way to add an extra header into the envelope to be signed?

Selling Partner API uses x-amz-access-token header, which is also required to be signed.

https://developer-docs.amazon.com/amazon-shipping/docs/connecting-to-the-selling-partner-api#authorization-header

Authorization: AWS4-HMAC-SHA256
Credential=AKIAIHV6HIXXXXXXX/20201022/us-east-1/execute-api/aws4_request
SignedHeaders=host;user-agent;x-amz-access-token;x-amz-date
Signature=5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924aEXAMPLE

(I split it into lines for better readability)