[][src]Trait jwtvault::api::vault::Workflow

pub trait Workflow<H, D>: Store + PersistenceHasher<H> + Persistence + UserIdentity + UserAuthentication + TrustToken + PasswordHasher<D> where
    H: Hasher + Default,
    D: Default
{ #[must_use] fn login<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        user: &'life1 str,
        pass: &'life2 str,
        authentication_token_expiry_in_seconds: Option<i64>,
        refresh_token_expiry_in_seconds: Option<i64>
    ) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn renew<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        user: &'life1 str,
        client_refresh_token: &'life2 String,
        authentication_token_expiry_in_seconds: Option<i64>
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn logout<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        user: &'life1 str,
        client_authentication_token: &'life2 String
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn revoke<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        client_refresh_token: &'life1 String
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Workflow for library user DefaultVault

Required methods

#[must_use]fn login<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    user: &'life1 str,
    pass: &'life2 str,
    authentication_token_expiry_in_seconds: Option<i64>,
    refresh_token_expiry_in_seconds: Option<i64>
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn renew<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    user: &'life1 str,
    client_refresh_token: &'life2 String,
    authentication_token_expiry_in_seconds: Option<i64>
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn logout<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    user: &'life1 str,
    client_authentication_token: &'life2 String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn revoke<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    client_refresh_token: &'life1 String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl Workflow<DefaultHasher, ArgonPasswordHasher> for DynamicVault[src]

impl<'a> Workflow<DefaultHasher, Hasher<'a>> for DefaultVault[src]

Loading content...