sigaws v0.2.0 Sigaws.Ctxt

Context containing information related to Sigaws Signature verification.

Fields

NameDescription
access_key
 
Access Key ID used for verification. Extracted from credential scope.
regionFrom credential scope
serviceFrom credential scope
signed_at_amz_dtFrom X-Amz-Date parameter or header
expires_in
 
From X-Amz-Expires parameter or header (nil when not specified)
signed_headers
 
From Authorization header or X-Amz-SignedHeaders parameter. This is a list of header names normalized to lowercase.
signatureFrom Authorization header or X-Amz-Signature parameter

This is passed to the callbacks in Sigaws.Provider behavior. It is also returned when the verification succeeds. A plug performing signature verification can make this context available as a plug connection assign upon successful verification. This facilitates separate policy enforcement plugs that could potentially be developed making use of this verified context.

Summary

Types

expires_in()
expires_in() :: integer | nil
signed_headers()
signed_headers() :: [binary]
t()
t() :: %Sigaws.Ctxt{access_key: binary, expires_in: expires_in, region: binary, service: binary, signature: binary, signed_at_amz_dt: binary, signed_headers: signed_headers}