pub struct JwtMethod { /* private fields */ }Expand description
JWT-based authentication method.
Implementations§
Trait Implementations§
Source§impl AuthMethod for JwtMethod
impl AuthMethod for JwtMethod
Source§fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
credential: &'life1 Credential,
_metadata: &'life2 CredentialMetadata,
) -> Pin<Box<dyn Future<Output = Result<MethodResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
credential: &'life1 Credential,
_metadata: &'life2 CredentialMetadata,
) -> Pin<Box<dyn Future<Output = Result<MethodResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Authenticate using the provided credentials.
Source§fn validate_config(&self) -> Result<()>
fn validate_config(&self) -> Result<()>
Validate configuration for this method.
Source§fn supports_refresh(&self) -> bool
fn supports_refresh(&self) -> bool
Check if this method supports refresh tokens.
Auto Trait Implementations§
impl Freeze for JwtMethod
impl RefUnwindSafe for JwtMethod
impl Send for JwtMethod
impl Sync for JwtMethod
impl Unpin for JwtMethod
impl UnwindSafe for JwtMethod
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