Capabilities
A signed-in user in ION carries two tokens. The Entra token proves who the user is and which shell application they signed in to. The capability token, issued by the Signet service, states what that user may do: which shell and persona apply, which tenants they may touch, which permissions they hold, and which MFEs they may load.
This page describes capabilities from the identity perspective: where the capability token comes from, how it is tied to the Entra identity, and who enforces it. The full service design, including endpoints, token construction, and the APIM product policy, is in the Signet capabilities design.
Why capabilities
ION shells host many MFEs, and the same MFE can run in more than one shell. Without a central contract, every MFE and BFF would repeat the mapping from Entra roles to permissions, and each copy would drift. Signet resolves that mapping once:
- MFEs read permissions such as
Incident.ReadWrite; they never check role names or shell names. - APIM and BFFs verify one signed token instead of calling back to a resolver for each request.
- Persona and tenant scope rules live in one place and change in one place.
The two tokens
| Property | Entra user token | Capability token |
|---|---|---|
| Issuer | Microsoft Entra ID | Signet |
| Audience | The shell’s Entra application (Customer Portal, advisor portal, or Alya) | mfe-apim |
| Proves | Who the user is and which application they signed in to | What the user may do in this shell |
| Signing | Entra keys | RS512 with Signet’s private key, header typ set to cap+jwt |
| Lifetime | Entra policy | About one hour |
| Header on MFE requests | Authorization | X-Capabilities |
| Terminates at | The BFF | The BFF |
The explicit typ header stops any verifier from mistaking one token for the
other. Neither token is valid without the other at the BFF.
Capability claims
| Claim | Meaning |
|---|---|
sub | The user’s Entra object ID (oid) |
shell | alya or bondi |
persona_type | internal or public |
scope | Either unrestricted, or a list of customers and their tenants |
permissions | DomainEntity.Read or DomainEntity.ReadWrite values, for example Incident.ReadWrite |
mfe_access | MFEs the user may load |
entra_aud | The audience of the Entra token the capability token was issued for |
iat, nbf, exp | Issue, not-before, and expiry times |
sub and entra_aud are the binding anchors. They tie the capability token to
one user and one shell application.
From Entra identity to capability
Signet derives every claim from the validated Entra token:
| Shell application (Entra audience) | Roles | Shell | Persona | Scope |
|---|---|---|---|---|
| Customer Portal | Ion.Portal.* | bondi | public | The user’s own tenant only |
| Advisor portal | Ion.User.Impersonation.* | bondi | public | Unrestricted |
| Alya | Ion.DefenderWorkbench.*, Ion.AutomationWorkbench.* | alya | internal | Unrestricted |
Key rules:
- The audience decides the shell. A customer token cannot obtain an Alya capability set, and an Alya token cannot obtain a Bondi one.
- Only customer users are tenant-restricted. A customer’s scope is fixed to the tenant in their own token; nothing they send can widen it.
- Roles add up. Each role contributes a permission and MFE bundle; unknown roles contribute nothing. Domain rules that apply to every persona, such as read-only rules-of-engagement for customers, are encoded in the map once.
- Role catalogue changes are capability changes. Adding or changing an
Ion.*user role requires updating Signet’s role-to-permission and role-to-MFE maps in the same change. See Application roles.
Binding and enforcement
| Concern | Authoritative system | ION responsibility |
|---|---|---|
| Issue | Signet | Validate the Entra token, cross-check the requested shell, resolve persona, scope, permissions, and MFE access, and sign the capability token |
| Present | Shell and MFEs | Send both tokens on every MFE request and hide unavailable features; the UI decision is presentation only |
| Edge check | APIM MFE product | Validate the Entra token, call Signet validations with APIM's managed identity, check path tenant and workspace against scope and a coarse write gate, throttle per user and tenant, and fail closed |
| Bind and enforce | MFE BFF | Re-verify the capability token, bind it to the forwarded Entra token, require the route's permission, apply shell rules, re-check the resource tenant, and strip fields |
| Final authority | Domain service | Enforce tenant isolation, ownership, and valid state transitions regardless of capability |
Why there is no per-BFF audience
All MFE BFFs in a shell accept the shell’s Entra token. Isolation comes from binding, not from separate audiences:
- the capability token is valid only next to the exact Entra audience, user, and tenant it was issued for;
- APIM authenticates to every BFF with its own managed identity, so a browser cannot call a BFF directly; and
- every BFF requires the specific permission for each route.
This keeps sign-in to one token per shell and avoids a separate consent and token acquisition for every MFE.
Header handling
Authorizationfrom the browser is validated by APIM and never reaches the BFF asAuthorization; APIM replaces it with its own managed-identity token.X-Authorizationis set by APIM from the validated inbound token. APIM must override a browser-supplied value; the deployed global policy does not yet do this (gap APIM-01), so the BFF validates the token before binding.X-Capabilitiesis passed through unchanged. The BFF never trusts it until it has verified the signature and binding itself.
Signet’s own identity
Signet follows the same workload rules as every service:
| Concern | Implementation |
|---|---|
| Compute identity | Its own user-assigned managed identity |
| Inbound authentication | Easy Auth for the Platform API audience behind APIM |
| Shell endpoint | GET /v1/capabilities on an external APIM API, called with the user’s Entra token |
| Validation endpoint | POST /v1/validations on an internal APIM API, called only by APIM with its managed identity |
| Signing key | Private key in Signet’s Key Vault, used only by Signet |
| Verification key | Public key in shared App Configuration, resolved by key ID by APIM-side validation and BFFs |
Rotating the signing key means publishing the new public key first, then switching Signet to the new private key, then retiring the old public key after the longest capability lifetime has passed.
Failure behavior
| Condition | Result |
|---|---|
| Entra token invalid or expired | Signet or APIM rejects; the shell re-authenticates |
| Requested shell does not match the token audience | Signet rejects with a shell mismatch |
| No matching role for the audience | No capability token; the shell shows no MFEs |
| Path tenant outside the token scope | APIM returns 403 before the BFF |
| Tenant-restricted token on a route without a tenant | APIM returns 403 |
Write method without any ReadWrite permission | APIM returns 403 |
| Capability token for another user or shell | BFF binding fails; request rejected |
| Capability token expired | APIM or BFF rejects; the shell requests a new token |
| Route permission missing | BFF rejects even though APIM allowed the request |
All failures are fail-closed and return no customer data. Capability tokens and Entra tokens are never logged.