Skip to content

Instantly share code, notes, and snippets.

@Leigh-
Created May 1, 2016 18:19
Show Gist options
  • Save Leigh-/e5d1ce32ac71dd4d4839e17130955b91 to your computer and use it in GitHub Desktop.
Save Leigh-/e5d1ce32ac71dd4d4839e17130955b91 to your computer and use it in GitHub Desktop.
ColdFusion: AWS Task 4: Add the Signing Information to the Request
<!---
CFML translation of Amazon Web Services Example - Task 4:
http://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html
Note: Translation only includes generating Authorization header
--->
<h1>Task 4: Add the Signing Information to the Request</h1>
<div>
After you calculate the signature, you add it to the request. You can add the signing information to a request in one of two ways:
<ol>
<li>An HTTP header named Authorization</li>
<li>The query string</li>
</ol>
</div>
<div>
<strong>Pseudocode showing construction of the Authorization header.</strong>
<pre>
Authorization: algorithm Credential=access key ID/credential scope, SignedHeaders=SignedHeaders, Signature=signature
</pre>
</div>
<div>
<strong>Example of example finished Authorization header. </strong>
<pre>
Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/iam/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7
</pre>
<cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment