mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-31 19:37:00 +02:00
update actix-web dependencies to v4 beta.10 (#203)
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
# Changes
|
||||
|
||||
## Unreleased - 2020-xx-xx
|
||||
* Update `actix-web` dependency to v4.0.0-beta.10. [#203]
|
||||
* Minimum supported Rust version (MSRV) is now 1.52.
|
||||
|
||||
[#203]: https://github.com/actix/actix-extras/pull/203
|
||||
|
||||
|
||||
## 0.6.0-beta.2 - 2020-06-27
|
||||
* No notable changes.
|
||||
|
@@ -18,7 +18,7 @@ name = "actix_web_httpauth"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { version = "4.0.0-beta.8", default_features = false }
|
||||
actix-web = { version = "4.0.0-beta.10", default_features = false }
|
||||
actix-service = "2.0.0"
|
||||
base64 = "0.13"
|
||||
futures-util = { version = "0.3.7", default-features = false }
|
||||
|
@@ -105,7 +105,6 @@ impl BasicAuth {
|
||||
|
||||
impl FromRequest for BasicAuth {
|
||||
type Future = Ready<Result<Self, Self::Error>>;
|
||||
type Config = Config;
|
||||
type Error = AuthenticationError<Challenge>;
|
||||
|
||||
fn from_request(req: &HttpRequest, _: &mut Payload) -> <Self as FromRequest>::Future {
|
||||
@@ -115,7 +114,7 @@ impl FromRequest for BasicAuth {
|
||||
.map_err(|_| {
|
||||
// TODO: debug! the original error
|
||||
let challenge = req
|
||||
.app_data::<Self::Config>()
|
||||
.app_data::<Config>()
|
||||
.map(|config| config.0.clone())
|
||||
// TODO: Add trace! about `Default::default` call
|
||||
.unwrap_or_else(Default::default);
|
||||
|
@@ -103,7 +103,6 @@ impl BearerAuth {
|
||||
}
|
||||
|
||||
impl FromRequest for BearerAuth {
|
||||
type Config = Config;
|
||||
type Future = Ready<Result<Self, Self::Error>>;
|
||||
type Error = AuthenticationError<bearer::Bearer>;
|
||||
|
||||
@@ -113,7 +112,7 @@ impl FromRequest for BearerAuth {
|
||||
.map(|auth| BearerAuth(auth.into_scheme()))
|
||||
.map_err(|_| {
|
||||
let bearer = req
|
||||
.app_data::<Self::Config>()
|
||||
.app_data::<Config>()
|
||||
.map(|config| config.0.clone())
|
||||
.unwrap_or_else(Default::default);
|
||||
|
||||
|
Reference in New Issue
Block a user