mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-02 18:59:04 +01:00
25 lines
817 B
Rust
25 lines
817 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
|
|
//!
|
|
//! - `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/
|
|
//! [Middleware]: ./middleware
|
|
|
|
#![forbid(unsafe_code)]
|
|
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
|
|
|
|
pub mod extractors;
|
|
pub mod headers;
|
|
pub mod middleware;
|
|
mod utils;
|