pub trait AuthValidator {
// Required method
fn validate(&self, headers: &HeaderMap) -> Result<(), HttpResponse>;
}
Expand description
General purpose trait to validate Http Authorization headers. It’s supposed to be integrated as
a validator trait into an AuthLayer
.