Authenticating and authorising
Two different questions, answered in two different places.
Authenticating is proving who somebody is: a password, a provider, a passkey, a token. It happens once, at the start, and it produces a session or a recognised token. That is the Authentication section.
Authorising is deciding whether this caller may have this request. It happens on every request, and it is what this section is about.
Where a rule can be written
| Rule | Where | Answers |
|---|---|---|
| A route's access rule | the route's Security section | may this caller reach this route at all |
| An endpoint rule | Infra > Endpoint security, from the route's OpenAPI spec | may this caller call this operation |
| Membership and groups | a tenant's members and groups | which roles this person holds, here |
| The role catalogue | Application > Roles | which role names exist, and which imply which |
| Capabilities | Application > Users | who may administer the gateway itself |
Roles come from groups, groups belong to a tenant, and roles only exist inside a tenant: a session with no active tenant holds no roles at all, whatever the person is a member of elsewhere.
The order on one request
- The route's predicates decide which routes could answer.
- The route's access rule is evaluated - as part of choosing the route, not after it. If the rule poses no condition, the request is proxied immediately and no session is even looked up.
- A session or a
Bearertoken is resolved, and the rule is answered against the caller. - The route's gates and rate limits run.
- If the route carries endpoint rules, the operation is matched and its own rule is answered.
- The request is proxied, carrying the identity as headers or a signed JWT.
Two consequences of step two being part of the selection:
- The first matching route whose rule accepts the caller wins. A route whose rule turns this caller away is passed over, and the next matching route is tried. The refusal of the first one is remembered, and is what the caller gets if nothing else answers.
- **A rule at the level Nobody never falls through.** It refuses there and then.
A worked example: only Finance opens /billing
The four places of the table above, used once each, in the order they depend on each other. The installation serves a single tenant, so its groups and members are under Application; with several tenants, the same screens are under Tenants, the tenant. The Billing route already exists and matches /billing/**.
- Create the role. In Application > Roles, the + on the All roles row, Role name
BILLING, a description such as Reads and issues invoices, then Create. See Roles. - Put the role in a group. In Application > Groups, tick
BILLINGin the Finance column. It saves on the click. See Groups. - Put the person in the group. In Application > Members, tick Finance on alice's row. See Members.
- Write the route's rule. In Infra > Routes, open Billing, section Security: level In a tenant, roles
BILLING, then Save. See A route's access rule. - Check. On Infra > Routes, Routing test: path
/billing/, As tenant the tenant, With rolesBILLING, then Play: Billing reads takes this request. Without the role it reads matched, but its security refuses this caller. Then sign in as alice in a private window and open/billing/: the page answers. Another member, not in Finance, lands on/refused.
A role granted takes effect within seconds, without signing anyone out.
The default nobody should get wrong
A route that declares no access rule is delegated: the gateway poses no condition, does not resolve a session, and hands the request to the upstream, which applies whatever rules it has of its own.
What a refusal looks like
A refusal on a UI route lands on a page, in the visitor's language: the tenant chooser when changing tenant would actually help, the waiting room when the account belongs nowhere, and otherwise /refused, which names the rule that turned them away and offers what this session can open.

A refusal on a service route is a 403 with a sentence: nobody reads a page in a curl. A caller with no session at all gets a 401 or, on a navigation, a redirect to the sign-in page.
With no session and no token, on a route whose rule asks for a role:
$ curl -i https://apps.acme.example/billing/api/invoices
HTTP/2 401
www-authenticate: Session
content-type: text/plain; charset=utf-8
authentication required
With a personal API token of somebody who holds no BILLING role in their tenant:
$ curl -i -H "Authorization: Bearer mk_..." https://apps.acme.example/billing/api/invoices
HTTP/2 403
content-type: text/plain; charset=utf-8
forbidden: this endpoint requires one of the roles BILLING
The sentence names what is missing: the tenant, one of the roles, one of the capabilities, or this endpoint is closed for a rule at the level Nobody.
What is not there
- No global switch to turn access control off. The equivalent is route-by-route: leave a rule empty and that route is delegated.
- No impersonation. There is no "sign in as this person" for an administrator, in any edition.