plexus-auth-core
Who is calling a Plexus RPC service, and what they may call: AuthContext,
Principal, credentials, tenants, roles and grants, and the gate that
answers each call.
Most people want plexus-rpc
A service takes one dependency, plexus-rpc,
which brings this crate as plexus_rpc::auth_core. Its README shows a
service with users.
Install
[]
= "0.3"
| feature | what it turns on |
|---|---|
adapters |
The ways a caller proves who it is: OIDC, nostr, agent keys |
oidc-reqwest |
An HTTP fetcher for the OIDC validator's discovery and keys |
test-support |
Constructors for a crate's own tests, for [dev-dependencies] only |
A caller
use Principal;
use AuthContext;
let principal: Principal = "key:2fe0a8167e552fd7c0b2713c953b9993a5b187d67a11695adcb266e94ec83006".parse.unwrap;
let caller = for_principal;
assert!;
assert!;
assert_eq!;
let nobody = anonymous;
assert!;
assert!;
cargo test --doc runs this block.