Function actix_web_security::authentication::scheme::header_extractor::extract_auth_header [−][src]
pub fn extract_auth_header(
header: &HeaderValue,
auth_scheme: &str,
header_length: usize
) -> Result<String, AuthenticationError>
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
.