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]
fn new(checker: C) -> Self
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]
C: CredentialManager<R> + Send + 'static,
R: Role + Send + Sync + 'static