Trait actix_web::middleware::identity::IdentityPolicy
source · pub trait IdentityPolicy<S>: Sized + 'static {
type Identity: Identity;
type Future: Future<Item = Self::Identity, Error = Error>;
fn from_request(&self, request: &HttpRequest<S>) -> Self::Future;
}
Expand description
Identity policy definition.
Required Associated Types
Required Methods
sourcefn from_request(&self, request: &HttpRequest<S>) -> Self::Future
fn from_request(&self, request: &HttpRequest<S>) -> Self::Future
Parse the session from request and load data from a service identity.