Overview
The OpenID AuthZEN Authorization API defines a standard interface between Policy Enforcement Points (PEPs) and Policy Decision Points (PDPs). Grantex aligns its external policy backend integration with the AuthZEN subject/resource/action/context model.How It Works
When an authorization request arrives at the Grantex server and an external policy backend is configured (OPA or Cedar), the server translates the request into an AuthZEN-aligned evaluation context:| AuthZEN Element | DAAP Source |
|---|---|
| Subject | Agent DID, developer ID, principal ID |
| Resource | Grant with requested scopes |
| Action | authorize, delegate, verify, or debit |
| Context | Timestamp, IP address, budget state |
Example
A DAAP authorization request:Backend-Specific Details
OPA (Rego)
OPA receives the context in itsinput field and evaluates Rego policies:
Cedar
Cedar maps the context to typed entities (Agent, Grant, Action):Full Documentation
- AuthZEN conformance mapping — complete subject/resource/action/context mapping
- AuthZEN evaluation API alignment — OPA and Cedar PDP integration details