pub trait Authenticator {
// Required method
fn get_user(&self, req: &ServiceRequest) -> Option<User>;
}Expand description
Required Methods§
Sourcefn get_user(&self, req: &ServiceRequest) -> Option<User>
fn get_user(&self, req: &ServiceRequest) -> Option<User>
Attempts to authenticate the request and returns the user if successful.