guides
Intended Documentation
Verify a Token
Verify authority decision tokens using tenant public keys and the verification gateway.
Verify a Token#
Intended tokens must be verified before any downstream action is executed.
1) Fetch Tenant Public Keys#
Use the token header kid to select the matching publicKeyPem.
2) Verify Through Gateway#
Response Example#
3) Enforce Outcome#
valid=trueand expected claims match: allow execution path.valid=false: deny execution and re-evaluate via/intentif needed.
Common Failures#
| Error | Meaning | Action |
|---|---|---|
VERIFY_KEY_NOT_FOUND | expectedKid not registered for tenant | Refresh keys and retry with correct key |
VERIFY_PUBLIC_KEY_MISMATCH | Wrong public key used | Use key returned by /tenants/:tenantId/authority-keys/public |
VERIFY_TENANT_REQUIRED | Missing tenant verification context | Send x-tenant-id and/or expectedTenantId |