Skip to main content

AuthMethod

Trait AuthMethod 

Source
pub trait AuthMethod: Send + Sync {
    // Required method
    fn login<'a>(
        &'a self,
        client: &'a VaultClient,
    ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send + 'a;
}
Expand description

Pluggable authentication method

Implementors store their own credentials and produce an AuthInfo on login

Required Methods§

Source

fn login<'a>( &'a self, client: &'a VaultClient, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send + 'a

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§