Skip to main content

PasswordHashHook

Trait PasswordHashHook 

Source
pub trait PasswordHashHook: Send + Sync {
    // Required method
    fn before_hash<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        password: &'life1 str,
        context: Option<&'life2 PasswordHashContext>,
    ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

An initialized policy applied at actual password hashing, after endpoint admission and before the selected original hasher. Verification is unchanged.

Required Methods§

Source

fn before_hash<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, password: &'life1 str, context: Option<&'life2 PasswordHashContext>, ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§