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:
parent
f79a253f1e
commit
411d08c121
@ -13,7 +13,7 @@ license = "MIT/Apache-2.0"
|
||||
exclude = [".travis.yml", ".gitignore"]
|
||||
|
||||
[dependencies]
|
||||
actix-web = "0.6"
|
||||
actix-web = "0.7"
|
||||
bytes = "0.4"
|
||||
base64 = "0.9"
|
||||
|
||||
|
@ -9,7 +9,7 @@ use actix_web_httpauth::extractors::AuthenticationError;
|
||||
struct 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();
|
||||
config.realm("WallyWorld");
|
||||
let auth = BasicAuth::from_request(&req, &config)?;
|
||||
|
@ -9,7 +9,7 @@ use actix_web::middleware::{Middleware, Started};
|
||||
struct 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();
|
||||
config.realm("Restricted area");
|
||||
config.scope("openid profile email");
|
||||
|
Loading…
x
Reference in New Issue
Block a user