Shell and MFE Identity Workflow
V3 user interfaces are shells that compose domain micro-frontends (MFEs) (ADR-0023). Alya is the internal shell for Cyber Defenders; Bondi is the customer and Cyber Advisor shell. This page describes the identity path that is common to both: how the shell signs the user in, how Signet turns Entra roles into a capability token, how an MFE request is validated at APIM and bound at the MFE BFF, where the user token terminates, and how the single shell-owned SignalR connection is authorized.
Shell-specific populations, applications, and onboarding are covered in Customer Portal and Alya Workbench. The capability model is described in Capabilities, and the MFE platform design in Micro-frontends.
Actors and identities
| Concern | Authoritative system | ION responsibility |
|---|---|---|
| User | Microsoft Entra ID (customer tenant or Ontinue platform directory) | Authenticates the user; issues an access token whose audience is the shell application. |
| Shell | Alya or Bondi SPA with MSAL | Signs the user in with Authorization Code and PKCE, acquires the capability token, gates MFE mounting, owns the SignalR connection. |
| Capability issuer | Signet | Validates the Entra token, resolves shell, persona, scope, permissions, and MFE access, and signs the RS512 capability token. |
| Edge | APIM MFE product (apim-product-mfe-{env}) | Validates the Entra token, calls Signet validations with its managed identity, rate-limits, and authenticates to the BFF with its own managed identity. |
| MFE BFF | One BFF per MFE, with its own UAMI | Re-verifies and binds the capability token, enforces per-route rules, terminates the user token, and calls downstream services as itself. |
| Real-time | Shell SignalR BFF and Azure SignalR | Negotiates the single shell connection and controls group membership after backend authorization. |
| Downstream services | Domain APIs and workers, each with its own UAMI | Authorize the calling workload's Ion.* roles and enforce domain rules; never see the user token. |
Shell sign-in
Both shells use MSAL with the Authorization Code flow with PKCE. Implicit flow, browser-held client secrets, and ID tokens used as API authorization are prohibited.
| Shell | Application | Authority | Persona | Scope |
|---|---|---|---|---|
Alya (alya) | Alya application (azsp-ontinue-rome-idm-ion-defenderwb-{env}-01), single-tenant | Ontinue tenant-specific authority | internal | Unrestricted |
Bondi (bondi), customer users | Customer portal application (azsp-ontinue-rome-idm-ion-portal-{env}-01), multi-tenant | organizations | public | Own tenant only |
Bondi (bondi), Cyber Advisors | Advisor portal application (azsp-ontinue-rome-idm-ion-portal-advisors-{env}-01), single-tenant | Ontinue tenant-specific authority | public | Unrestricted |
The shell requests an access token for its own application’s exposed API scope. That one shell token is used for every MFE BFF call in the session; MSAL refreshes it silently.
Capability acquisition
After sign-in the shell calls Signet GET /v1/capabilities with
Authorization: Bearer and the shell’s Entra token, plus X-Shell set to alya or
bondi. Signet:
- validates the Entra token’s signature, issuer, and lifetime and extracts
aud,tid,oid, androles; - resolves shell and persona from the token audience and roles;
- rejects the request if
X-Shelldoes not equal the derived shell; - unions the role-mapped permissions and MFE access and builds the tenant scope; and
- signs an RS512 token with
typcap+jwtand audiencemfe-apim, valid for about one hour.
| Claim | Meaning |
|---|---|
sub | The user’s Entra object ID (oid) |
shell | alya or bondi |
persona_type | internal or public |
scope | Unrestricted, or a restricted list containing only the caller’s own tenant |
permissions | Set of DomainEntity.Read or DomainEntity.ReadWrite values, such as Incident.ReadWrite |
mfe_access | MFEs the user may load |
entra_aud | The Entra audience the capability token was minted for; the binding anchor |
The response is returned with Cache-Control: no-store. The shell keeps the
capability token in memory with the user context and re-acquires it before
expiry.
MFE gating in the browser
The shell mounts only the MFEs listed in mfe_access. An MFE reads permissions
from the shared user context to show or hide affordances, such as the action to
close an incident. Neither the shell nor the MFE branches on Entra role names or
shell names.
MFE request path and token termination
Every MFE request carries two headers: Authorization: Bearer with the shell’s
Entra token, and X-Capabilities with the capability token.
APIM MFE product
All MFE BFFs are published under the shared apim-product-mfe-{env} product. The
product policy:
- validates the Entra token in
Authorizationagainst the shell applications’ audiences and trusted issuers; - rate-limits to 300 requests per minute per user
oid; - calls Signet
POST /v1/validationswith APIM’s managed identity, passing the capability token, the tenant taken from the route’s path parameters (customerTenantId,tenantId, and equivalents), the workspace taken from workspace parameters (workspaceId,ion_workspace_id, and equivalents), and the request method; - returns
403if Signet denies or cannot be reached, so the BFF is never invoked on a failed or unavailable validation; and - acquires its own managed-identity token for the ION Platform API application,
places it in backend
Authorization, setsX-Authorizationto the validated original Entra token, and forwardsX-Capabilities.
Signet’s validation is coarse and stateless:
| Check | Rule |
|---|---|
| Tenant or workspace scope | The tenant or workspace resolved from the route must be in the token’s scope. A route without either parameter accepts only an unrestricted scope. |
| Write gate | GET, HEAD, and OPTIONS pass. Any other method requires at least one *.ReadWrite permission. |
| Token integrity | Signature, typ, audience, and lifetime must be valid. |
MFE BFF binding
The BFF’s Easy Auth accepts only the ION Platform API audience, so it
authenticates APIM rather than the user. The Ontinue.Ion.Capabilities.Signet
middleware then:
- rejects a missing or empty
X-Capabilitiesheader; - verifies the RS512 signature,
typcap+jwt, lifetime, and the public key resolved bykid; - re-validates the Entra token from
X-Authorizationand binds it: the tokenaudmust equalentra_aud, the tokenoidmust equalsub, and the tokentidmust be inscope; and - stores the verified claims in the request context.
Each route then applies R1–R6:
| Rule | Responsibility |
|---|---|
| R1 | Confirm capability validation ran on the route |
| R2 | Read claims from the request context, never by re-parsing the header |
| R3 | Require the route’s specific permission |
| R4 | Apply shell-specific domain rules using the shell claim |
| R5 | Re-check that the specific resource’s tenant is in scope |
| R6 | Strip response fields the persona may not see |
After authorization the BFF terminates the user token. It does not place the
Entra token, X-Authorization, or the capability token in any downstream header,
message, job, store, or telemetry. Downstream calls use the BFF’s own UAMI token
for the Platform API audience and carry only validated context such as user
oid, tenant, and correlation ID. The Microservices workflow
describes that hop.
Why there is no per-BFF audience
MFE BFFs do not each own an Entra application or audience. The shell token is the only user token in the session, and the capability token carries the authorization contract.
- One consent and one sign-in per shell. A customer administrator consents once to the customer portal application. Adding an MFE requires no new application, no re-consent, and no additional token acquisition in the browser.
- The backend audience is already uniform. Easy Auth accepts one audience per app, and every BFF trusts the Platform API audience presented by APIM. A per-BFF user audience would not reach the BFF’s platform authentication anyway.
- Binding replaces audience separation. The capability token is bound to the
exact shell token through
entra_aud,sub, andtid. A token for another shell, user, or tenant fails binding even though it targets the same BFF. - Authorization lives in permissions. Which MFE BFF operations a user may perform is decided by Signet permissions and per-route rules, not by which audience a token names.
Real-time connection
Each shell owns exactly one SignalR connection per session, served by the shell SignalR BFF. MFEs never open their own connection.
The browser never asserts group membership:
- the user identifier for negotiation and grouping comes from the APIM-validated token, never from a request body or query value;
- the group name is derived on the server from the entity type and ID;
- the backend authorizes the user’s access to the entity and its tenant before any group change, applying the same scope and permission rules as a read of that entity;
- a BFF that relays a subscription passes the validated user and entity as context, not the user’s token; and
- only the shell SignalR BFF writes to the hub. Producers publish signed events to Service Bus and never address SignalR directly.
On reconnect, MFEs re-register their subscriptions through the same backend path. The routing token is short-lived and is renegotiated before expiry. See Micro-frontends real-time.
Failure behavior
| Scenario | Where it is caught | Result |
|---|---|---|
| Expired capability token | APIM through Signet validation; BFF middleware lifetime check | 403; the shell re-acquires a capability token from GET /v1/capabilities and retries once |
Shell mismatch, such as a customer token requesting alya | Signet at issuance | 403 with ShellMismatch; no capability token is issued |
| Tenant out of scope, such as a customer user requesting another tenant’s route | Signet validation at APIM; BFF R5 for the specific resource | 403; the BFF is not reached when the route tenant is out of scope |
| Restricted token on a route with no tenant or workspace parameter | Signet validation at APIM | 403; only unrestricted scopes may use such routes |
| Read-only persona sends a write | Signet write gate at APIM; BFF R3 for the route’s specific permission | 403 at APIM when no *.ReadWrite exists; 403 at the BFF when the specific permission is absent |
| Swapped capability token from another user or shell | BFF binding (oid to sub, aud to entra_aud, tid to scope) | 403; recorded as a security event |
Missing X-Capabilities on an MFE route | APIM product; BFF middleware | 403 |
| Invalid or expired Entra token | APIM token validation | 401; the shell refreshes through MSAL |
More than 300 requests per minute for one oid | APIM product | 429 |
| Signet unavailable | APIM product | 403; validation fails closed |
Audit
APIM records the route, user oid, tenant, Signet decision, and correlation ID.
Signet records issuance and validation decisions with failure codes. The BFF
records binding failures, per-route denials, the resulting downstream workload
identity, and correlation context. None of these records contain the Entra token,
the capability token, or authorization headers.