Struct mould_auth::TokenService
[−]
[src]
pub struct TokenService<C, R> where C: TokenManager<R>, R: Role { /* fields omitted */ }
A handler which use TokenManager
to set role to session.
The following actions available:
* do-auth
- try to authorize by token
Methods
impl<C, R> TokenService<C, R> where C: TokenManager<R>, R: Role
[src]
fn new(checker: C) -> Self
Trait Implementations
impl<T, C, R> Service<T> for TokenService<C, R> where T: HasPermission<TokenPermission> + Authorize<R>,
C: TokenManager<R> + Send + 'static,
R: Role + Send + Sync + 'static
[src]
C: TokenManager<R> + Send + 'static,
R: Role + Send + Sync + 'static