baiji v0.6.5 Baiji.Request.Sign
Implement request signing functions. The code in this file replicates that of the aws-elixir library (github.com/jkakar/aws-elixir)
Link to this section Summary
Functions
Add an Authorization header to the Request struct
Add a formatted date header to the given request’s header list
Add a security token header if a security token has been set on the operation struct
Build a canonical query string
Generate a string that contains information about the request in canonical format
Convert a list of header tuples to canonical format
Generate a credential scope string
Encode a body string by generating a SHA256 digest and encoding it to hex
Calculate the request signature
Generate a signed headers string by extracting header names, converting them to lower-case and joining them with semicolons
Generate a signing key using AWS credentials, the target service, time, etc
Generate a string to sign
Add signing headers to the given request using the AWS Signature Version 4 protocol
Add signing and authorization headers to the given request using the AWS Signature Version 4 protocol
Link to this section Functions
Add an Authorization header to the Request struct
Add a formatted date header to the given request’s header list
Add a security token header if a security token has been set on the operation struct
Build a canonical query string
Generate a string that contains information about the request in canonical format
Convert a list of header tuples to canonical format
Generate a credential scope string
Encode a body string by generating a SHA256 digest and encoding it to hex
Calculate the request signature
Generate a signed headers string by extracting header names, converting them to lower-case and joining them with semicolons.
Generate a signing key using AWS credentials, the target service, time, etc.
Generate a string to sign
Add signing headers to the given request using the AWS Signature Version 4 protocol
Add signing and authorization headers to the given request using the AWS Signature Version 4 protocol