Skip to main content

extract_bearer_token

Function extract_bearer_token 

Source
fn extract_bearer_token<B>(req: &Request<B>) -> Option<&str>
Expand description

Extracts an opaque bearer token from an Authorization: Bearer <token> header (the standard or x-greptime-auth header).

Returns None for any other scheme (Basic, influxdb Token, splunk Splunk, …) so the caller can fall through to the username/password path.