pub struct JwtAuthenticator { /* private fields */ }Expand description
Built-in Authenticator validating Authorization: Bearer <jwt> via JwtCodec.
Implementations§
Source§impl JwtAuthenticator
Inherent implementation of JwtAuthenticator.
impl JwtAuthenticator
Inherent implementation of JwtAuthenticator.
Trait Implementations§
Source§impl Authenticator for JwtAuthenticator
Implements Authenticator for JwtAuthenticator.
impl Authenticator for JwtAuthenticator
Implements Authenticator for JwtAuthenticator.
Source§fn authenticate<'a>(&'a self, ctx: &'a Context) -> AuthFuture<'a>
fn authenticate<'a>(&'a self, ctx: &'a Context) -> AuthFuture<'a>
Authenticates Authorization: Bearer <token> requests via JwtCodec.
§Arguments
&'a self- Shared reference to self.&'a Context- Incoming request context.
§Returns
AuthFuture<'a>- Future resolving toAuthPrincipalorAuthError.
Source§impl Clone for JwtAuthenticator
impl Clone for JwtAuthenticator
Auto Trait Implementations§
impl Forget for JwtAuthenticator
impl Freeze for JwtAuthenticator
impl Move for JwtAuthenticator
impl RefUnwindSafe for JwtAuthenticator
impl Send for JwtAuthenticator
impl Sync for JwtAuthenticator
impl Unpin for JwtAuthenticator
impl UnsafeUnpin for JwtAuthenticator
impl UnwindSafe for JwtAuthenticator
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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