Skip to main content

Module basic_auth

Module basic_auth 

Source
Expand description

Basic HTTP Authentication (RFC 7617)

Implements the simple username/password authentication scheme where credentials are Base64-encoded and sent in the Authorization header.

§Security Considerations

  • Basic auth transmits credentials in an easily decoded format (Base64)
  • Always use HTTPS to prevent credential interception
  • This module provides an https_only option to enforce secure connections
  • All credentials are wrapped in Secret<T> for automatic memory zeroing

Structs§

BasicAuthProvider
Basic authentication provider implementing RFC 7617.