Trait salvo_extra::basic_auth::BasicAuthValidator

source ·
pub trait BasicAuthValidator: Send + Sync {
    // Required method
    fn validate(
        &self,
        username: &str,
        password: &str,
        depot: &mut Depot
    ) -> impl Future<Output = bool> + Send;
}
Available on crate feature basic-auth only.
Expand description

BasicAuthValidator

Required Methods§

source

fn validate( &self, username: &str, password: &str, depot: &mut Depot ) -> impl Future<Output = bool> + Send

Validate is that username and password is right.

Object Safety§

This trait is not object safe.

Implementors§