pub fn extract_auth_header(
header: &HeaderValue,
auth_scheme: &str,
header_length: usize,
) -> Result<String, AuthenticationError>
Expand description
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
.