Skip to main content

TenantStore

Trait TenantStore 

Source
pub trait TenantStore: Send + Sync {
    // Required method
    fn authenticate(&self, api_key: &str) -> Option<Tenant>;
}
Expand description

Resolves a presented high-entropy API key without retaining its plaintext.

Required Methods§

Source

fn authenticate(&self, api_key: &str) -> Option<Tenant>

Return the matching tenant, or None for an invalid key.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§