Module actix_web_security::authentication::scheme::header_extractor[][src]

The authorization header trait definition and utility functions.

Traits

AuthorizationHeaderExtractor

The trait of AuthorizationHeaderExtractor to 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 boxed Authentication) 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 String with the extracted token (without the scheme prefix from the header) or an AuthenticationError.