Decisions
Build your own enforcement point on the realm's policies, asking the realm for each decision or deciding locally the way the gateway does.
The gateway is one enforcement point; your API, or a proxy you already run, can be another. Either way the realm’s policies decide, and there are two ways to reach them. Ask the realm for each decision, and the answer is always current and can take the caller’s groups into account, at the cost of one call per request. Or decide locally: pull the realm’s policies and its revocation feed, and decide in process with no call per request, at the cost of freshness. The gateway does the second, and asks the realm only what a token can’t settle.
Whichever you choose, the decision is the same: every enforcement point reads the same policies by the same rules. Both ways are available today, with or without the gateway.
Capabilities
Section titled “Capabilities”Decide in your own enforcement point
Section titled “Decide in your own enforcement point”| Capability | What it gives you |
|---|---|
| Ask the realm | One decision, or several at once, in the AuthZEN shape (with limits) |
| Search | Which users or agents a decision would allow, or which actions |
| Groups read for you | The realm reads the subject’s groups itself when you send none |
| Decide locally | Pull the realm’s policies and decide in process, fetching again only on change (with limits) |
| Revocation feed | Revoked tokens, sessions and principals, so a local decision refuses them too |
Asking the realm has a limit: it answers who and which actions, never which resources. Deciding locally has one: a decision made locally isn’t on the realm’s audit trail.