Skip to main content

AuthState

Trait AuthState 

Source
pub trait AuthState: Send + Sync {
    // Required methods
    fn tokens(&self) -> &dyn TokenStore;
    fn quirks(&self) -> &Quirks;
}
Available on crate feature server only.
Expand description

What Auth needs from the router’s state.

Required Methods§

Source

fn tokens(&self) -> &dyn TokenStore

The token store to resolve credentials tokens against.

Source

fn quirks(&self) -> &Quirks

The interoperability profile to parse the Authorization header with.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AuthState for Arc<OcpiState>

Source§

fn tokens(&self) -> &dyn TokenStore

Source§

fn quirks(&self) -> &Quirks

Implementors§