Skip to main content

ic_auth_protocol_types/
lib.rs

1//! Passive application-token contracts, independent of runtime, storage and Candid.
2//! `Principal` re-exports the canonical narrow `ic_principal` type.
3//! Transport schemas belong to endpoint adapters, outside these domain contracts.
4//!
5//! Decoding these values does not verify a proof or establish authority. Hosts
6//! must obtain expected audience, caller, time and issuer policy independently.
7//! These tokens are not IC ingress delegations.
8
9mod common;
10mod identifiers;
11mod logout;
12mod portable;
13mod proof;
14mod token;
15
16pub use common::*;
17pub use ic_principal::Principal;
18pub use identifiers::{AudienceId, AuthRole, CanonicalId, IdentifierError};
19pub use logout::{LogoutRequest, LogoutResult, LogoutUnavailable};
20pub use portable::{PortableClaims, PortableCredential, PortableMechanism, PortableProof};
21pub use proof::*;
22pub use token::*;