Expand description
NHI JWT claims.
Structs§
- Actor
Claim - RFC 8693 §4.1 actor claim: identifies the party that is acting on behalf
of the subject. In a delegation chain,
substays the human principal andactholds the agent identity. Nestedactclaims represent multi-hop delegation (agent A delegates to agent B: A is inact, B is inact.act). - NhiClaims
- Claims carried by an AgentVisor AI NHI token.
Enums§
- Audience
- The
audclaim per RFC 7519 §4.1.3: “a StringOrURI value or an array of StringOrURI”. Mainstream IdPs (Okta, Auth0, Azure AD, Cognito) emit the array form for multi-audience apps ("aud": ["agentvisor", "some-other-svc"]). Accepting only the string form silently locks the operator out at go-live with aninvalid type: sequence, expected stringerror deep insidejsonwebtoken::decode, before our validator’s aud check runs.
Constants§
- MAX_
TTL_ SECS - Hard TTL ceiling for NHI tokens: 15 minutes (brief Module D).