2018-05-30 16:43:39 +03:00
|
|
|
//! HTTP Authorization support for [actix-web](https://actix.rs) framework.
|
2018-05-23 15:31:14 +03:00
|
|
|
//!
|
2019-05-17 17:28:57 +03:00
|
|
|
//! Provides:
|
|
|
|
//! * 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
|
|
|
|
//!
|
|
|
|
//! * `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`
|
|
|
|
//! [extractors]: https://actix.rs/docs/extractors/
|
2019-05-17 17:28:57 +03:00
|
|
|
//! [middleware]: ./middleware/
|
2018-05-30 16:43:39 +03:00
|
|
|
|
2019-05-17 17:28:57 +03:00
|
|
|
#![deny(bare_trait_objects)]
|
|
|
|
#![deny(missing_docs)]
|
|
|
|
#![deny(unused)]
|
2018-05-30 16:43:39 +03:00
|
|
|
#![cfg_attr(feature = "nightly", feature(test))]
|
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;
|