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
//! AUTHZ-CORE-CRATE-1 §"Required behavior" — ServiceIdentity carries the
//! service-id payload of `Principal::Service(_)`. Its constructor is
//! `pub(crate)`; field is private. External construction is rejected.

use plexus_auth_core::ServiceIdentity;

fn main() {
    let _ = ServiceIdentity::new_sealed("plexus.example".into());
}