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§
Object Safety§
This trait is not object safe.