pub struct CookieAuthenticator { /* private fields */ }Expand description
Unwraps a cookie header and re-presents its token to an inner authenticator.
A cookie is a carrier, not a credential kind — the thing inside it is a bearer token or an API key. Modelling it as a decorator rather than a fourth verification algorithm keeps exactly one implementation of each actual proof, which is why this type contains no verification logic at all.
Implementations§
Trait Implementations§
Source§impl Authenticator for CookieAuthenticator
impl Authenticator for CookieAuthenticator
Source§fn name(&self) -> &str
fn name(&self) -> &str
A stable, non-secret name for logs, audit records, and capability
advertisement.
Source§fn accepts(&self, presentation: &Presentation) -> bool
fn accepts(&self, presentation: &Presentation) -> bool
Does this authenticator handle this presentation?
Source§fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
presentation: &'life1 Presentation,
) -> Pin<Box<dyn Future<Output = Result<Authenticated, AuthnRejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
presentation: &'life1 Presentation,
) -> Pin<Box<dyn Future<Output = Result<Authenticated, AuthnRejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Verify the material and name the subject it proves.
Auto Trait Implementations§
impl !RefUnwindSafe for CookieAuthenticator
impl !UnwindSafe for CookieAuthenticator
impl Forget for CookieAuthenticator
impl Freeze for CookieAuthenticator
impl Send for CookieAuthenticator
impl Sync for CookieAuthenticator
impl Unpin for CookieAuthenticator
impl UnsafeUnpin for CookieAuthenticator
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