mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
apply imports_granularity fmt rule
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
use actix_web::dev::ServiceRequest;
|
||||
use actix_web::{middleware, web, App, Error, HttpServer};
|
||||
use actix_web_httpauth::extractors::basic::BasicAuth;
|
||||
use actix_web_httpauth::middleware::HttpAuthentication;
|
||||
use actix_web::{dev::ServiceRequest, middleware, web, App, Error, HttpServer};
|
||||
use actix_web_httpauth::{extractors::basic::BasicAuth, middleware::HttpAuthentication};
|
||||
|
||||
async fn validator(
|
||||
req: ServiceRequest,
|
||||
|
@ -5,5 +5,4 @@ pub mod bearer;
|
||||
mod config;
|
||||
mod errors;
|
||||
|
||||
pub use self::config::AuthExtractorConfig;
|
||||
pub use self::errors::AuthenticationError;
|
||||
pub use self::{config::AuthExtractorConfig, errors::AuthenticationError};
|
||||
|
@ -4,6 +4,8 @@ mod errors;
|
||||
mod header;
|
||||
mod scheme;
|
||||
|
||||
pub use self::errors::ParseError;
|
||||
pub use self::header::Authorization;
|
||||
pub use self::scheme::{basic::Basic, bearer::Bearer, Scheme};
|
||||
pub use self::{
|
||||
errors::ParseError,
|
||||
header::Authorization,
|
||||
scheme::{basic::Basic, bearer::Bearer, Scheme},
|
||||
};
|
||||
|
@ -5,8 +5,7 @@ use actix_web::{
|
||||
web::{BufMut, Bytes, BytesMut},
|
||||
};
|
||||
|
||||
use super::super::Challenge;
|
||||
use super::{BearerBuilder, Error};
|
||||
use super::{super::Challenge, BearerBuilder, Error};
|
||||
use crate::utils;
|
||||
|
||||
/// Challenge for [`WWW-Authenticate`] header with HTTP Bearer auth scheme, described in [RFC 6750].
|
||||
|
@ -4,9 +4,7 @@ mod builder;
|
||||
mod challenge;
|
||||
mod errors;
|
||||
|
||||
pub use self::builder::BearerBuilder;
|
||||
pub use self::challenge::Bearer;
|
||||
pub use self::errors::Error;
|
||||
pub use self::{builder::BearerBuilder, challenge::Bearer, errors::Error};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
@ -3,5 +3,7 @@
|
||||
mod challenge;
|
||||
mod header;
|
||||
|
||||
pub use self::challenge::{basic, bearer, Challenge};
|
||||
pub use self::header::WwwAuthenticate;
|
||||
pub use self::{
|
||||
challenge::{basic, bearer, Challenge},
|
||||
header::WwwAuthenticate,
|
||||
};
|
||||
|
Reference in New Issue
Block a user