Skip to main content

parse_auth_header

Function parse_auth_header 

Source
pub fn parse_auth_header(header: &str) -> Result<AuthHeader, AuthError>
Expand description

Parse a Haystack Authorization header value.

Supported formats:

  • HELLO username=<base64(username)>
  • SCRAM handshakeToken=<token>, data=<data>
  • BEARER authToken=<token>