Skip to main content

AuthState

Trait AuthState 

Source
pub trait AuthState:
    Clone
    + Send
    + Sync
    + 'static {
    // Required methods
    fn jwt_keys(&self) -> Option<&Arc<JwtKeys>>;
    fn sessions_ks(&self) -> &KeyspaceHandle;
}
Expand description

Trait that application states must implement to support auth extractors.

Both did-hosting-server and webvh-witness implement this for their respective AppState types, allowing AuthClaims and AdminAuth to be generic.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§