pub struct NoOpAuthProvider;Available on non-WebAssembly only.
Expand description
No-op authentication provider for development/testing.
Trait Implementations§
Source§impl AuthProvider for NoOpAuthProvider
impl AuthProvider for NoOpAuthProvider
Source§fn validate_request<'life0, 'life1, 'async_trait>(
&'life0 self,
_authorization_header: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<AuthContext>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn validate_request<'life0, 'life1, 'async_trait>(
&'life0 self,
_authorization_header: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<AuthContext>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Validate an incoming request and extract authentication context. Read more
Source§fn is_required(&self) -> bool
fn is_required(&self) -> bool
Check if this provider requires authentication for all requests.
Source§fn auth_scheme(&self) -> &'static str
fn auth_scheme(&self) -> &'static str
Get the authentication scheme this provider uses (e.g., “Bearer”, “Basic”).
Source§impl Clone for NoOpAuthProvider
impl Clone for NoOpAuthProvider
Auto Trait Implementations§
impl Freeze for NoOpAuthProvider
impl RefUnwindSafe for NoOpAuthProvider
impl Send for NoOpAuthProvider
impl Sync for NoOpAuthProvider
impl Unpin for NoOpAuthProvider
impl UnsafeUnpin for NoOpAuthProvider
impl UnwindSafe for NoOpAuthProvider
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