Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication wiring — RFC 2326 §14 (RTSP reuses HTTP auth).

RTSP shares HTTP’s Basic and Digest schemes verbatim (RFC 2326 §16); see docs/auth.md. The heavy lifting — challenge parsing and the digest response computation — is delegated to the http_auth crate. This module holds the client Credentials and an Authenticator that owns the negotiated http_auth::PasswordClient and computes an Authorization header value for each outgoing request.

The one RTSP-specific rule: the uri used in the digest computation is the RTSP request URI (e.g. rtsp://host/stream), not an HTTP URL (RFC 2326 §14).

Structs§

Authenticator
Holds the negotiated password client for an authenticated RTSP session.
Credentials
Username/password credentials for RTSP authentication (RFC 2326 §14).