Struct mould_auth::AuthService [] [src]

pub struct AuthService<C, R> where C: CredentialManager<R>, R: Role { /* fields omitted */ }

A handler which use CredentialManager to set role to session. The following actions available: * do-auth - try to authorize by credential

Methods

impl<C, R> AuthService<C, R> where C: CredentialManager<R>, R: Role
[src]

Trait Implementations

impl<T, C, R> Service<T> for AuthService<C, R> where T: HasPermission<AuthPermission> + Authorize<R>,
        C: CredentialManager<R> + Send + 'static,
        R: Role + Send + Sync + 'static
[src]

Never return error, but rejecting Worker created