1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

update httpauth readme

This commit is contained in:
Rob Ede
2020-09-28 02:04:18 +01:00
parent d14e188246
commit 33dfea8997
4 changed files with 30 additions and 23 deletions

View File

@ -96,7 +96,7 @@ impl fmt::Display for Basic {
let bytes = self.to_bytes();
let repr = str::from_utf8(&bytes)
// Should not happen since challenges are crafted manually
// from `&'static str`'s and Strings
// from a `&'static str` or `String`
.map_err(|_| fmt::Error)?;
f.write_str(repr)

View File

@ -1,21 +1,21 @@
//! HTTP Authorization support for [actix-web](https://actix.rs) framework.
//! 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
//! - 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)
//! - `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/
//! [Extractors]: https://actix.rs/docs/extractors/
//! [Middleware]: ./middleware
#![deny(bare_trait_objects, missing_docs, nonstandard_style, rust_2018_idioms)]
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
#![deny(clippy::all)]
pub mod extractors;