pub struct PortableClaims {Show 14 fields
pub mechanism: PortableMechanism,
pub audience: AudienceId,
pub issuer: Principal,
pub key_binding_id: [u8; 32],
pub browser_public_key: [u8; 32],
pub account_subject: Principal,
pub device_slot: u8,
pub device_generation: u64,
pub login_started_at_ns: u64,
pub login_deadline_ns: u64,
pub issued_at_ns: u64,
pub admission_expires_at_ns: u64,
pub nonce: [u8; 16],
pub grants: Vec<DelegatedRoleGrant>,
}Expand description
PortableClaims
Unauthenticated schema-2 credential fields. The codec checks structure, not signature validity, time relationships, enrollment, caller binding, revocation or permission. Even a successfully decoded value cannot authorize a session.
Fields§
§mechanism: PortableMechanismMechanism committed by the signed bytes.
audience: AudienceIdClaimed receiving network and application.
issuer: PrincipalClaimed issuer; verification must match protected enrollment.
key_binding_id: [u8; 32]Claimed key-binding identity, not key material or authority.
browser_public_key: [u8; 32]Raw browser Ed25519 key; possession and caller binding are not checked here.
account_subject: PrincipalIssuer-qualified subject; canonical claims exclude the anonymous principal.
device_slot: u8Issuer-assigned slot, canonically bounded to 0–7.
device_generation: u64Nonzero slot generation, unchanged by renewal.
login_started_at_ns: u64Original login start, in nanoseconds.
login_deadline_ns: u64Original absolute login deadline, in nanoseconds.
issued_at_ns: u64Credential issuance time, in nanoseconds.
admission_expires_at_ns: u64Exclusive fresh-admission expiry, distinct from the session lease.
nonce: [u8; 16]Credential nonce; all-zero bytes remain valid structural input.
grants: Vec<DelegatedRoleGrant>Signed grants in strict role/scope order; never normalize them on decode.