Skip to main content

Module auth

Module auth 

Source
Expand description

HTTP authentication header parsing.

Extracts credentials from Authorization headers for EST enrollment authentication. Supports:

  • HTTP Basic (RFC 7617) – username:password for OTP validation
  • Bearer token (RFC 6750) – OAuth2 / JWT tokens
  • Negotiate (RFC 4559) – GSSAPI/Kerberos SPNEGO tokens
  • Client certificate – extracted from TLS connection info

Structs§

BasicChallenge
Builder for WWW-Authenticate: Basic challenge headers.

Enums§

AuthCredential
Parsed credential from an HTTP Authorization header.
AuthError
Errors during authentication header parsing.

Constants§

WWW_AUTHENTICATE_BASIC
Default WWW-Authenticate header value for HTTP Basic authentication.

Functions§

client_cert_credential
Extract the subject DN from a client certificate.
parse_authorization
Parse an Authorization header value into a structured credential.