mirror of
https://github.com/actix/actix-extras.git
synced 2025-04-22 09:54:53 +02:00
27 lines
939 B
Rust
27 lines
939 B
Rust
//! HTTP authentication schemes for [Actix Web](https://actix.rs).
|
|
//!
|
|
//! Provides:
|
|
//! - Typed [Authorization] and [WWW-Authenticate] headers
|
|
//! - [Extractors] for an [Authorization] header
|
|
//! - [Middleware] for easier authorization checking
|
|
//!
|
|
//! ## Supported schemes
|
|
//! - `Bearer` as defined in [RFC 6750](https://tools.ietf.org/html/rfc6750).
|
|
//! - `Basic` as defined in [RFC 7617](https://tools.ietf.org/html/rfc7617).
|
|
//!
|
|
//! [Authorization]: `self::headers::authorization::Authorization`
|
|
//! [WWW-Authenticate]: `self::headers::www_authenticate::WwwAuthenticate`
|
|
//! [Extractors]: https://actix.rs/docs/extractors
|
|
//! [Middleware]: self::middleware
|
|
|
|
#![forbid(unsafe_code)]
|
|
#![warn(missing_docs)]
|
|
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
|
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
|
|
|
pub mod extractors;
|
|
pub mod headers;
|
|
pub mod middleware;
|
|
mod utils;
|