Subject: | POD clarification |
Date: | Sat, 28 Oct 2017 19:52:55 -0400 |
To: | bug-AWS-Signature4 [...] rt.cpan.org |
From: | Rob Lauer <rlauer6 [...] comcast.net> |
Thanks for the useful module. It might be helpful to others to explain in
the documentation that if you are signing a request using the sign() method
and you are using a temporary session token, you should add the session
token to the request header manually.
my $request = HTTP::Request->new('POST', $url);
....
$request->header('X-Amz-Security-Token', $token);
$aws_signature4->sign($request);
The documentation around -security-token only applies to signed urls using
the sign_url() method.