Skip to main content

actix_web_httpauth/
lib.rs

1//! HTTP authentication schemes for [Actix Web](https://actix.rs).
2//!
3//! Provides:
4//! - Typed [Authorization] and [WWW-Authenticate] headers
5//! - [Extractors] for an [Authorization] header
6//! - [Middleware] for easier authorization checking
7//!
8//! ## Supported schemes
9//! - `Bearer` as defined in [RFC 6750](https://tools.ietf.org/html/rfc6750).
10//! - `Basic` as defined in [RFC 7617](https://tools.ietf.org/html/rfc7617).
11//!
12//! [Authorization]: `self::headers::authorization::Authorization`
13//! [WWW-Authenticate]: `self::headers::www_authenticate::WwwAuthenticate`
14//! [Extractors]: https://actix.rs/docs/extractors
15//! [Middleware]: self::middleware
16
17#![forbid(unsafe_code)]
18#![warn(missing_docs)]
19#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
20#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
21#![cfg_attr(docsrs, feature(doc_cfg))]
22
23pub mod extractors;
24pub mod headers;
25pub mod middleware;
26mod utils;