mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-29 19:24:58 +02:00
Update actix-web to 0.7. (Closes #4)
This commit is contained in:
@ -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