[][src]Trait imagevault::authentication::Authentication

pub trait Authentication {
#[must_use]    fn authenticate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 mut self,
        client_identity: &'life1 str,
        client_secret: &'life2 str,
        base_url: &'life3 Url,
        reqwest_client: &'life4 Client
    ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
; }

Authentication

The underlying trait for ImageVault authentication

Required methods

#[must_use]fn authenticate<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
    &'life0 mut self,
    client_identity: &'life1 str,
    client_secret: &'life2 str,
    base_url: &'life3 Url,
    reqwest_client: &'life4 Client
) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    Self: 'async_trait, 

Authenticate is called from the ImageVault Client whenever a request requiring authentication is made. It shouldn't be called directly.

Remarks

Mutates the authentication if required.

Loading content...

Implementors

impl Authentication for ClientCredentialsAuthentication[src]

impl Authentication for PinCodeAuthentication[src]

Loading content...