pub trait AuthState<S: Subject>:
Send
+ Sync
+ 'static {
type Authn: AuthenticationService<S>;
type Authz: AuthorizationService<S>;
// Required methods
fn authn(&self) -> &Self::Authn;
fn authz(&self) -> &Self::Authz;
}
Expand description
Trait implemented by the application State to provide specific auth service types.
Required Associated Types§
Sourcetype Authn: AuthenticationService<S>
type Authn: AuthenticationService<S>
The concrete Authentication Service type
Sourcetype Authz: AuthorizationService<S>
type Authz: AuthorizationService<S>
The concrete Authorization Service type