guides
Intended Documentation
Verify Decision Tokens
Verify RS256 authority decision tokens locally and with the verification gateway.
Verify Authority Tokens#
Tokens returned in authorityDecisionToken are signed with RS256 and scoped to tenant, adapter, and action claims.
Token Claims (Runtime)#
Typical claim set includes:
intentIdtenantIdadapterIdadapterTargettargetSystemproposedActiondecisionissuedAtexpiresAtnonce
Local Verification Flow#
- Parse token header and read
kid. - Fetch key set from
GET /tenants/:tenantId/authority-keys/public. - Select matching key by
kid. - Verify JWT signature and required claim constraints.
TypeScript Example#
Gateway Verification Flow#
Use POST /verify/token when you want centralized verification.
Failure Handling#
| Failure | Cause | Action |
|---|---|---|
| Invalid signature | tampered token or wrong key | deny and log security event |
| Expired token | TTL exceeded | re-submit /intent to obtain a new token |
| Tenant mismatch | token replayed across boundary | deny, investigate actor context |
Unknown kid | key rotation | refresh keys and retry |