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
|
|
|
//!
|
2019-05-17 17:28:57 +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
|
2019-05-15 17:38:55 +03:00
|
|
|
//!
|
|
|
|
//! ## 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)
|
2019-05-15 17:38:55 +03:00
|
|
|
//!
|
|
|
|
//! [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)]
|
2020-09-28 02:04:18 +01:00
|
|
|
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
|
2018-05-23 15:31:14 +03:00
|
|
|
|
2018-05-30 16:43:39 +03:00
|
|
|
pub mod extractors;
|
2019-05-15 17:38:55 +03:00
|
|
|
pub mod headers;
|
2019-05-17 17:28:57 +03:00
|
|
|
pub mod middleware;
|
2019-05-15 17:38:55 +03:00
|
|
|
mod utils;
|