Expand description
The authorization header trait definition and utility functions.
Traits§
- Authorization
Header Extractor - The trait of
AuthorizationHeaderExtractorto be implemented for a specific authentication scheme. Takes a set of HTTP-Headers from the client request and extracts a token (in form of a boxedAuthentication) from the headers.
Functions§
- extract_
auth_ header - Utility function to extract the actual token from the header for a given authentication scheme (basic/bearer).
Returns either a
Stringwith the extracted token (without the scheme prefix from the header) or anAuthenticationError.