pub trait IdentityPolicy<S>: 'static + Sized {
    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§

The associated identity

The return type of the middleware

Required Methods§

Parse the session from request and load data from a service identity.

Implementors§