mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-30 03:44:27 +02:00
Update actix-web to 0.7. (Closes #4)
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user