pub struct MemoryAuthProvider<S> { /* private fields */ }Implementations§
Source§impl<S> MemoryAuthProvider<S>
impl<S> MemoryAuthProvider<S>
Sourcepub fn new<F>(outcome: F) -> MemoryAuthProvider<S>
pub fn new<F>(outcome: F) -> MemoryAuthProvider<S>
Build with a verdict closure. The closure runs on every
verify_token call; tests can capture state (e.g. an
AtomicUsize call counter) by move-capturing into a
Fn body.
Trait Implementations§
Source§impl<S> AuthProvider<S> for MemoryAuthProvider<S>
impl<S> AuthProvider<S> for MemoryAuthProvider<S>
Source§fn verify_token<'life0, 'life1, 'async_trait>(
&'life0 self,
bearer: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<S, VerifyError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryAuthProvider<S>: 'async_trait,
fn verify_token<'life0, 'life1, 'async_trait>(
&'life0 self,
bearer: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<S, VerifyError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
MemoryAuthProvider<S>: 'async_trait,
Validate the Bearer token end-to-end. The SDK Layer passes the
raw token verbatim — no decoding, no trimming. The impl owns
the substrate (JWKS cache, session-row lookup, sv-axis cache,
or whichever combination this consumer composes).
Auto Trait Implementations§
impl<S> !RefUnwindSafe for MemoryAuthProvider<S>
impl<S> !UnwindSafe for MemoryAuthProvider<S>
impl<S> Freeze for MemoryAuthProvider<S>
impl<S> Send for MemoryAuthProvider<S>
impl<S> Sync for MemoryAuthProvider<S>
impl<S> Unpin for MemoryAuthProvider<S>
impl<S> UnsafeUnpin for MemoryAuthProvider<S>
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