signature_v4_auth(datetime = format(Sys.time(), "%Y%M%dT%H%M%SZ", tz = "UTC"), region = Sys.getenv("AWS_DEFAULT_REGION"), service, verb, action, query_args = list(), canonical_headers, request_body, key = Sys.getenv("AWS_ACCESS_KEY_ID"), secret = Sys.getenv("AWS_SECRET_ACCESS_KEY"), session_token = Sys.getenv("AWS_SESSION_TOKEN"), query = FALSE, algorithm = "AWS4-HMAC-SHA256")
Sys.time
.canonical_request
.Sys.getenv("AWS_ACCESS_KEY_ID")
Sys.getenv("AWS_SECRET_ACCESS_KEY")
canonical_headers
.action
&X-Amz-Algorithm=Algorithm
&X-Amz-Credential=URLencode(Credentials)
&X-Amz-Date=Date
&X-Amz-Expires=timeout
&X-Amz-SignedHeaders=SignedHeaders
where action
is the API endpoint being called and timeout
is a numeric value indicating when the request should expire.If signing a request using header-based authentication, the Authorization header in the request should be included with the request that looks as follows:Authorization: Algorithm
Credential=Credential
, SignedHeaders=SignedHeaders
, Signature=Signature
This is the value printed by default for all objects of class aws_signature_v4.
Amazon S3 API Reference: Authenticating Requests (AWS Signature Version 4)
http://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html
signature_v4_auth