Skip to main content

parse_authorization_header

Function parse_authorization_header 

Source
pub fn parse_authorization_header(header: &str) -> Result<ParsedAuth, AuthError>
Expand description

Parse an AWS SigV4 Authorization header value into its components.

ยงErrors

Returns AuthError::InvalidAuthHeader if the header format is invalid, or AuthError::UnsupportedAlgorithm if the algorithm is not AWS4-HMAC-SHA256.