Skip to main content

BasicAuthCredsValidator

Trait BasicAuthCredsValidator 

Source
pub trait BasicAuthCredsValidator<Cred>
where Cred: BasicAuthCred,
{ // Required method fn get_cred(&self, username: &str) -> CredsResult<Option<&Cred>>; // Provided method fn verify_cred( &self, username: &str, password: &str, ) -> CredsResult<Option<&Cred>> { ... } }
Expand description

Validator for Basic Authentication credentials.

Required Methods§

Source

fn get_cred(&self, username: &str) -> CredsResult<Option<&Cred>>

Provided Methods§

Source

fn verify_cred( &self, username: &str, password: &str, ) -> CredsResult<Option<&Cred>>

Implementors§