How Gates Work
- Agent presents a Passport with its request
- Gate verifies the cryptographic signature
- Gate checks permissions against the requested action/resource
- Gate returns an allow/deny decision
Basic Usage
Decision Object
The decision returned by the gate contains:| Field | Type | Description |
|---|---|---|
allowed | bool | Whether the action is permitted |
reasonCode | string | Reason code if denied |
passportId | string | ID of the passport that was checked |
agentId | string | ID of the agent |