pub struct BasicAuthProvider { /* private fields */ }Expand description
Basic authentication security provider.
Implementations§
Source§impl BasicAuthProvider
impl BasicAuthProvider
pub fn new(cfg: BasicAuthConfig) -> Result<Self, ProxyError>
Trait Implementations§
Source§impl Debug for BasicAuthProvider
impl Debug for BasicAuthProvider
Source§impl SecurityProvider for BasicAuthProvider
impl SecurityProvider for BasicAuthProvider
Source§fn stage(&self) -> SecurityStage
fn stage(&self) -> SecurityStage
Which phase(s) does this provider participate in?
Source§fn pre<'life0, 'async_trait>(
&'life0 self,
req: ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<ProxyRequest, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pre<'life0, 'async_trait>(
&'life0 self,
req: ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<ProxyRequest, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optionally mutate/validate the inbound request before routing.
Source§fn post<'life0, 'async_trait>(
&'life0 self,
_request: ProxyRequest,
response: ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<ProxyResponse, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post<'life0, 'async_trait>(
&'life0 self,
_request: ProxyRequest,
response: ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<ProxyResponse, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optionally inspect/validate the response after the upstream call.
Auto Trait Implementations§
impl Freeze for BasicAuthProvider
impl RefUnwindSafe for BasicAuthProvider
impl Send for BasicAuthProvider
impl Sync for BasicAuthProvider
impl Unpin for BasicAuthProvider
impl UnwindSafe for BasicAuthProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more