[][src]Crate aws_sig_verify

The aws_sig_verify crate provides AWS SigV4 verification routines. This is not the library you want if you just want to call AWS services or other services that use AWS SigV4 signatures. Rusoto already has a library, rusoto_signature, that provides this functionality.

If you are attempting to perform AWS SigV4 verification using AWS-vended credentials, this library also will not work for you. You need the caller's secret key (or a derivative), and AWS does not allow this for obvious reasons. Instead, you should be using API Gateway with IAM authentication.

On the other hand, if you have your own ecosystem of AWS-like credentials and are developing mock-AWS services or just really like AWS SigV4 but can't run within AWS, this library might be for you.

Structs

AWSSigV4

The implementation of the standard AWS SigV4 algorithm.

IAMAssumedRoleDetails
IAMGroupDetails
IAMRoleDetails
IAMUserDetails
Principal

Principal for a given access key

Request

A data structure containing the elements of the request (some client-supplied, some service-supplied) involved in the SigV4 verification process.

SignatureError

Error returned when an attempt at validating an AWS SigV4 signature fails.

Enums

ErrorKind

The possible reasons for an AWS SigV4 signature validation to fail; returned as part of SignatureError.

PrincipalType

Principal type

SigningKeyKind

The types of signing key available.

Traits

AWSSigV4Algorithm

Trait for calculating various attributes of a SigV4 signature according to variants of the SigV4 algorithm.

Functions

canonicalize_uri_path

Normalizes the specified URI path, removing redundant slashes and relative path components.

normalize_query_parameters

Normalize the query parameters by normalizing the keys and values of each parameter and return a HashMap mapping each key to a vector of values (since it is valid for a query parameters to appear multiple times).

normalize_uri_path_component

Normalize the path component according to RFC 3986. This performs the following operations:

Type Definitions

SigningKeyFn

The function that returns a signing key of a given type.