Crates.io | http-auth |
lib.rs | http-auth |
version | 0.1.10 |
source | src |
created_at | 2021-10-20 20:27:55.272669 |
updated_at | 2024-08-31 16:00:55.310119 |
description | HTTP authentication: parse challenge lists, respond to Basic and Digest challenges. Likely to be extended with server support and additional auth schemes. |
homepage | |
repository | https://github.com/scottlamb/http-auth |
max_upload_size | |
id | 468090 |
size | 159,008 |
Rust library for HTTP authentication. Parses challenge lists, responds
to Basic
and Digest
challenges. Likely to be extended with server
support and additional auth schemes.
HTTP authentication is described in the following documents and specifications:
This framework is primarily used with HTTP, as suggested by the name. It is also used by some other protocols such as RTSP.
Well-tested, suitable for production. The API may change to improve ergonomics and functionality. New functionality is likely to be added. PRs welcome!
In order:
unsafe
blocks in http-auth
itself. All
dependencies are common, trusted crates.http_auth::DigestClient
currently weighs
in at 32 bytes plus one allocation for all string fields.Basic
and Digest
schemes; future expansion is likely.)http::header::GetAll
.http-auth
's CPU usage should never be noticeable. For Digest
's
cryptographic operations, it uses popular optimized crates. In other
respects, http-auth
is likely at least as efficient as other HTTP
authentication crates, although I have no reason to believe their
performance is problematic.Scott Lamb <slamb@slamb.org>
SPDX-License-Identifier: MIT OR Apache-2.0
See LICENSE-MIT.txt or LICENSE-APACHE, respectively.