plexus-auth-core 0.1.0

Sealed-type primitives for the Plexus auth framework: AuthContext, VerifiedUser, Principal.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! AUTHZ-DATA-1-WRAPPER §"Acceptance criteria" item 2 — a sibling crate
//! cannot construct a `Tenanted<S>` directly. `Tenanted::new_sealed` is
//! `pub(crate)` to `plexus-auth-core`; activation code receives a
//! `Tenanted<S>` from the framework's hub-builder layer and cannot mint
//! one itself.

use plexus_auth_core::tenant::storage::reference::InMemoryKvStore;
use plexus_auth_core::Tenanted;

fn main() {
    let store = InMemoryKvStore::new();
    let _ = Tenanted::new_sealed(store);
}