1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-02 18:59:04 +01:00

26 lines
847 B
Rust
Raw Normal View History

2020-09-28 02:04:18 +01:00
//! HTTP authentication schemes for [actix-web](https://actix.rs).
2018-05-23 15:31:14 +03:00
//!
//! Provides:
2020-09-28 02:04:18 +01:00
//! - Typed [Authorization] and [WWW-Authenticate] headers
//! - [Extractors] for an [Authorization] header
//! - [Middleware] for easier authorization checking
//!
//! ## Supported schemes
//!
2020-09-28 02:04:18 +01:00
//! - `Basic`, as defined in [RFC7617](https://tools.ietf.org/html/rfc7617)
//! - `Bearer`, as defined in [RFC6750](https://tools.ietf.org/html/rfc6750)
//!
//! [Authorization]: `crate::headers::authorization::Authorization`
//! [WWW-Authenticate]: `crate::headers::www_authenticate::WwwAuthenticate`
2020-09-28 02:04:18 +01:00
//! [Extractors]: https://actix.rs/docs/extractors/
//! [Middleware]: ./middleware
2018-05-30 16:43:39 +03:00
2021-08-30 23:10:36 +01:00
#![forbid(unsafe_code)]
2021-12-08 06:11:13 +00:00
#![deny(rust_2018_idioms, nonstandard_style)]
#![warn(future_incompatible, missing_docs)]
2018-05-23 15:31:14 +03:00
2018-05-30 16:43:39 +03:00
pub mod extractors;
pub mod headers;
pub mod middleware;
mod utils;