1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-02 10:59:03 +01:00

Update actix-web to 0.7. (Closes #4)

This commit is contained in:
Masaki Hara 2018-09-08 16:27:21 +09:00 committed by svartalf
parent f79a253f1e
commit 411d08c121
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ license = "MIT/Apache-2.0"
exclude = [".travis.yml", ".gitignore"] exclude = [".travis.yml", ".gitignore"]
[dependencies] [dependencies]
actix-web = "0.6" actix-web = "0.7"
bytes = "0.4" bytes = "0.4"
base64 = "0.9" base64 = "0.9"

View File

@ -9,7 +9,7 @@ use actix_web_httpauth::extractors::AuthenticationError;
struct Auth; struct Auth;
impl<S> Middleware<S> for Auth { impl<S> Middleware<S> for Auth {
fn start(&self, req: &mut HttpRequest<S>) -> Result<Started> { fn start(&self, req: &HttpRequest<S>) -> Result<Started> {
let mut config = Config::default(); let mut config = Config::default();
config.realm("WallyWorld"); config.realm("WallyWorld");
let auth = BasicAuth::from_request(&req, &config)?; let auth = BasicAuth::from_request(&req, &config)?;

View File

@ -9,7 +9,7 @@ use actix_web::middleware::{Middleware, Started};
struct Auth; struct Auth;
impl<S> Middleware<S> for Auth { impl<S> Middleware<S> for Auth {
fn start(&self, req: &mut HttpRequest<S>) -> Result<Started> { fn start(&self, req: &HttpRequest<S>) -> Result<Started> {
let mut config = Config::default(); let mut config = Config::default();
config.realm("Restricted area"); config.realm("Restricted area");
config.scope("openid profile email"); config.scope("openid profile email");