pub trait AuthExtractor<A, B>: Send + Sync {
// Required method
fn extract_auth(&self, request: &Request<B>) -> AuthResult<A>;
}Expand description
Trait for extracting a generic auth context from HTTP requests.
A is the auth type your ACL rules use.
B is the request body type.
Required Methods§
Sourcefn extract_auth(&self, request: &Request<B>) -> AuthResult<A>
fn extract_auth(&self, request: &Request<B>) -> AuthResult<A>
Extract auth context from the request.