Applications and Authorization
ION V3 separates user sign-in, capability resolution, API audiences, workload identity, and resource authorization. Microsoft Entra ID authenticates each caller, but possession of a valid token is never sufficient by itself: APIM, Signet, the BFF, the domain service, the target Azure resource, and — for customer-tenant access — the customer’s own controls enforce different parts of the authorization contract.
Microsoft Entra ID defines the directory and user-population topology. ADR-0013 — Service-to-service authentication defines the normative token boundaries used on this page, and Capabilities describes the identity view of the Signet capability token.
Application classes
| Class | Trust and registration model | Authentication flow | Authorization boundary |
|---|---|---|---|
| Shell application | SPA/public client registration per shell and population: Alya (single-tenant), Bondi customer (multi-tenant), Bondi advisor (single-tenant). It is the sign-in audience for every MFE BFF in that shell; there is no per-BFF audience | Authorization Code with PKCE through MSAL; no client secret. The shell then calls Signet GET /v1/capabilities with the Entra token and X-Shell | Entra app roles on the shell application feed Signet. UI checks are advisory, not authoritative |
| MFE BFF | Azure workload with its own UAMI; no app registration of its own; published through the APIM product apim-product-mfe-{env} | Receives APIM’s managed-identity token in Authorization, the validated shell token in X-Authorization, and the capability token in X-Capabilities | Binds capabilities to the user, terminates the user token, enforces per-route permissions and tenant scope, and calls downstream with its own UAMI |
| Application BFF | Server-side boundary for non-MFE application routes, paired with the relevant shell application and tenancy model | Same APIM pattern as the MFE BFF; uses its own UAMI for downstream calls | Terminates the user token and enforces route, persona, customer, tenant, and operation policy |
| Signet capability service | Azure Functions service with its own UAMI; external API behind apim-product-signet-ext-{env}, internal API behind apim-product-signet-int-{env}; RS512 signing key held in its Key Vault | External: shell Entra token plus X-Shell. Internal: APIM managed identity only | Resolves persona, tenant scope, <DomainEntity>.<Read|ReadWrite> permissions, and MFE access from Entra roles; validates tenant scope and a coarse write gate for APIM |
| API / resource application | Registration that exposes an API audience, delegated scopes, or application roles; internal platform APIs use the Platform API Application role catalogue | Receives Entra access tokens for its own audience; backend Easy Auth requires the Platform API audience | Enforces required roles or scopes and delegates domain invariants to the owning service |
| Azure workload managed identity | One UAMI per microservice — no exceptions for workload access. System-assigned and shared UAMIs are not used. RBAC is assigned at the service’s resource-group scope | Acquires a token for the target API, Azure resource, or api://AzureADTokenExchange | Application roles authorize ION API calls; Azure RBAC authorizes Azure control-plane or data-plane calls |
| Customer-tenant access app | Multi-tenant registration in the Ontinue directory, consented per customer; fixed permission shape per ADR-0010 | Workload Identity Federation: each calling workload’s UAMI is a FIC on the app. Legacy Key Vault secrets are transitional | Customer admin consent, the selected intent shape, the onboarding allowlist, and customer-side scoping such as Exchange Online RBAC for Applications |
| Hollow app | Multi-tenant registration with zero API permissions per ADR-0011 | Workload Identity Federation only | Azure RBAC that the customer assigns to its service principal on specific customer resources |
| CI/CD deployment identity | Runway Entra application with a per-environment federated credential; configured as a Runway prerequisite, not in Terraform | GitHub Actions OIDC token exchanged through a FIC whose subject is restricted to repository and environment (ADR-0024) | Azure RBAC for deployment scope only; no runtime data access |
| External integration | Purpose-specific app registration for callers outside the Azure workload boundary, such as ServiceNow | Federated credential where the caller has an OIDC issuer; otherwise client credentials with certificate | Application role, tenant rule, integration-specific allow-lists, and revocation path |
Public clients cannot protect credentials. Confidential components keep their credential boundary server-side. All Azure workloads use their own user-assigned managed identity and do not use embedded client secrets or certificate credentials. Every new Entra application starts with federated credentials only.
The single recorded shared-identity exception is the rome auth identity: a
shared UAMI used only as the federated credential for App Service and Functions
Easy Auth against the Platform API app, because Entra allows at most 20
federated identity credentials per application. It holds no Azure RBAC, no
Ion.* roles, and no data access. Some services, such as Signet, still use a
Key Vault Easy Auth secret while migration to this configuration is in progress.
See App Service authentication.
The single recorded delegated-credential exception is Pigeon’s Teams publishing account. Graph has no application permission for posting channel messages, so Pigeon posts as a dedicated user service account through the ROPC grant, with the password and client secret held in its Key Vault (ADR-0013 § 4). Pigeon’s UAMI is used for every other call. See Microsoft Teams and the guideline controls.
Registration model
Registrations are divided by responsibility rather than reused as a general platform credential:
- Separate environments. Development, test, staging, and production have separate registrations, owners, redirect URIs, audiences, assignments, federated credentials, and any transitional credentials.
- Separate public client and resource API. A shell registration handles sign-in; an API registration exposes the intended API audience and permissions. Tightly coupled exceptions require the same trust and lifecycle boundary.
- One audience per shell. Every MFE BFF in a shell accepts the same shell token. MFE BFFs do not get their own registration or audience; per-feature authorization is carried by capability permissions, not by token audience.
- Separate internal and customer tenancy. Alya and advisor shell
applications are single-tenant. Customer Portal applications that accept
customer-directory users are multi-tenant and require customer administrator
consent on the
organizationsauthority. - Separate advisor access. Advisor capability is not present in the customer-consented registration. The dedicated advisor shell application lets Signet issue an unrestricted scope and lets the BFF require the advisor role. That role grants access to every active onboarded customer.
- Separate integration intent. Customer Graph and Defender permissions are split into bounded read/write shapes, with mailbox access in a separate opt-in phishing app and Azure resource access in the hollow app.
- Shared internal role vocabulary. The single-tenant
Platform API Applicationdeclares theIon.*application roles used by internal service callers. Role assignment, not registration reuse, determines each workload’s capabilities. - Federated credentials by default. New applications are created with federated identity credentials only, and the FIC count per application is tracked against the Entra limit of 20.
Registration owners maintain the supported account type, redirect URIs, audience, exposed scopes, app roles, admin consent, federated credentials, transitional credentials and their expiry, and offboarding path. Wildcard or unowned redirect URIs are prohibited.
User traffic: shell to MFE BFF
The BFF is the user-token termination boundary. User tokens never propagate beyond the BFF. Downstream ION services and Azure resources receive a token for the BFF’s own UAMI, re-issued at APIM as APIM’s own managed-identity token, never the browser’s token.
- The shell signs the user in with MSAL to its shell Entra application and
calls Signet
GET /v1/capabilitieswith the Entra token andX-Shell(alyaorbondi). Signet returns a capability token (cap+jwt, RS512, audiencemfe-apim, about one hour TTL) carryingsub,shell,persona_type,scope,permissions,mfe_access, andentra_aud. - Every MFE-to-BFF call sends
Authorization: Bearerwith the shell Entra token andX-Capabilitieswith the capability token. All MFE BFFs in a shell accept the same shell token. - The APIM product
apim-product-mfe-{env}validates the Entra token, then calls SignetPOST /v1/validationswith APIM’s managed identity to check tenant scope and the coarse write gate. A denial returns 403 and the BFF is never reached. - APIM acquires its own managed-identity token for the Platform API audience
and places it in backend
Authorization. It setsX-Authorizationto the validated original shell token and forwardsX-Capabilities. - The BFF, through the shared
Ontinue.Ion.Capabilities.Signetmiddleware, re-verifies the capability token and binds it to the user token inX-Authorization:entra.audequalsentra_aud,oidequalssub, andtidis withinscope. It then enforces the route’s permission and terminates the user token. - For a downstream call, the BFF acquires an application token with its own
UAMI for the Platform API audience. APIM validates it and its
Ion.*role, then authenticates to the backend with its own managed identity. - The domain service enforces operation and state invariants. If it calls an Azure resource, it uses its own UAMI and the resource enforces Azure RBAC.
The frontend may hide unavailable features based on permissions and
mfe_access, but frontend state is not an authorization decision. Requests are
re-authorized at the server boundaries. The end-to-end workflow is in Shell and
MFE.
Service-to-service and Azure-resource traffic
Every Azure-hosted caller authenticates with its own UAMI. For an ION API call,
the caller requests a token for the Platform API Application audience
(api:// application ID URI with /.default); its assigned Ion.* application
roles are carried in the roles claim.
When the call traverses APIM:
- APIM validates the caller’s managed-identity token, including signature,
expiry, and
audagainst the environment allow-list of supported client application audiences (single-tenant and multi-tenant). The global policy requires arolesclaim, and the operation policy enforces the route’s requiredIon.*role. - APIM acquires its own token with the
authentication-managed-identitypolicy for the Platform API audience and places it in backendAuthorization. - APIM sets
X-Authorizationto the original, already-validated caller token so the receiving service can attribute the calling workload. An API may replace it with APIM’s own token when no caller context is needed downstream. - The backend’s Easy Auth requires the Platform API audience and therefore authenticates APIM. A customer-tenant token can never carry that audience, which closes off direct backend invocation from a customer tenant.
- The backend reads
X-Authorizationonly as caller context. It never replays it to another service.
Easy Auth itself authenticates to the Platform API app as a confidential client
using the rome auth identity as a federated credential
(client_secret_setting_name = "OVERRIDE_USE_MI_FIC_ASSERTION_CLIENTID"). That
identity signs only the Easy Auth client assertion; every service still uses its
own UAMI for all other access.
Direct calls to Azure services use a token for that Azure resource. The target resource authorizes the service’s UAMI through Azure RBAC at the service’s resource-group scope; cross-resource-group grants require a security-exception ADR. An ION API app-role assignment does not imply Azure-resource access, and an Azure RBAC assignment does not imply permission to invoke an ION API.
The managed-identity and role model is specified in ADR-0013 and applied by the microservice identity workflow, Managed Identity runbook, and API Management architecture.
Roles, scopes, RBAC, capabilities, and Teams membership
These mechanisms answer different authorization questions and are not interchangeable.
| Mechanism | Applies to | Meaning in V3 | Enforcement point |
|---|---|---|---|
Application roles (roles) | Application-only callers and assigned users/groups where the resource app permits them | A named capability on an ION API, using the Ion.* vocabulary; on shell applications, the input Signet projects into capability permissions | APIM performs coarse route checks; BFF or API enforces operation-specific requirements |
Delegated scopes (scp) | A public or confidential client acting on behalf of a signed-in user | The client may perform a bounded operation in the user’s context | APIM and the receiving BFF/API validate the required scope and user context |
| Capability permissions | Users in a shell, through the Signet capability token | <DomainEntity>.<Read|ReadWrite> permissions, MFE access, and tenant scope resolved once from Entra roles and shell audience | APIM via Signet validations for tenant scope and coarse write gate; the MFE BFF for per-route and per-resource permission |
| Azure RBAC | Azure management and data-plane resources, in the Ontinue estate and — through the hollow app — in customer subscriptions | The principal may perform Azure actions or data actions at an assigned resource scope | Azure Resource Manager or the target Azure service |
| Graph and Defender application permissions | Customer-tenant access apps after admin consent | The access app may call the consented Graph or Defender for Endpoint API in that customer tenant | Microsoft Graph and the Defender for Endpoint API |
| Exchange Online RBAC for Applications | The phishing app’s service principal in a customer tenant | Application Mail.Read is limited to mailboxes in a customer-defined Management Scope or Administrative Unit | Exchange Online in the customer tenant |
| Delegated customer-environment access | Ontinue operators in customer Defender XDR and Sentinel | GDAP/Tenant Governance and Azure Lighthouse grants selected per surface | Microsoft Defender XDR and Azure Resource Manager; selection owned by Customer Environment Access |
| Teams/channel membership | Ontinue-hosted shared collaboration spaces | The person may participate in a particular Team or channel | Entra B2B Direct Connect and Microsoft Teams |
Teams membership is not proof of an ION API role, a capability permission, a
customer subscription, an advisor role, Sentinel access, or Azure RBAC. A
capability permission does not grant an Ion.* role to the BFF. Likewise, an
application role does not bypass customer, tenant, workspace, ownership, or
domain-state checks, and a consented Graph permission does not bypass Exchange
scoping.
Multi-tenant token validation
Customer-facing APIs accept tokens from approved customer Entra directories, not from every organizational directory merely because the registration is multi-tenant. APIM fails closed unless all required checks succeed:
- Verify signature, validity interval, token version, and expected shell audience.
- Derive the issuer expectation from the token’s tenant and validate the issuer according to Entra’s multi-tenant rules; do not trust an arbitrary issuer.
- Check the tenant claim against the active customer-tenant subscription and onboarding record.
- Require the route’s application role or delegated scope;
rolesandscpare not substitutes for one another. - Validate the capability token through Signet: a customer persona’s scope is
restricted to its own tenant, and the BFF re-checks that
tidis within scope. - For advisor routes, validate the Ontinue advisor identity and advisor role, then require the requested customer to be active and onboarded. The advisor role applies to all such customers.
- Overwrite
X-Authorizationwith the validated token; never pass a client-supplied value through. - Preserve safe tenant, caller, route, and correlation context for audit without logging bearer tokens, capability tokens, or authorization headers.
A customer token cannot target the internal Platform API Application audience
and cannot be routed directly to a domain backend. Internal single-tenant flows
use the Ontinue issuer boundary and do not apply customer multi-tenant
acceptance rules. Customer-tenant workload tokens obtained through federation are
selected by the onboarding record’s tenant, never by request input.
Enforcement ownership
Authorization is deliberately layered. Passing an earlier layer never disables a later one.
| Owner | Required enforcement | Does not own |
|---|---|---|
| APIM | Validate the caller token’s signature, issuer/tenant policy, expiry, audience, approved caller, and route-level role or scope; apply customer-tenant allow-listing, throttling, and routing; on MFE routes, call Signet validations and fail closed with 403; authenticate to the backend with its own managed identity and forward the validated caller token in an APIM-owned X-Authorization (override required; gap APIM-01) | Domain state transitions, per-resource capability rules, field-level business rules, or Azure data-plane RBAC |
| Signet | Validate the shell Entra token; cross-check X-Shell against the token audience; resolve persona, tenant scope, permissions, and MFE access from Entra roles; sign the capability token; for APIM, validate tenant scope and the coarse write gate | Per-resource authorization, domain invariants, or issuing Entra tokens |
| BFF | Read the validated user token from X-Authorization; verify and bind the capability token (entra_aud, sub, tenant scope); terminate the user token; enforce route, permission, shell-specific, and tenant rules; prevent over-broad requests and responses; call downstream services with its own UAMI | Forwarding X-Authorization or the capability token downstream, granting Azure-resource permissions, or replacing domain invariants |
| Domain service | Authenticate APIM through Easy Auth on the Platform API audience; attribute the caller from X-Authorization; enforce operation-specific authorization, aggregate ownership, allowed state transitions, field constraints, and tenant isolation; reject impossible or unsafe domain actions | Trusting the UI or Teams membership as authorization, or replaying any caller token |
| Azure resource | Authenticate the workload UAMI and enforce Azure RBAC, data actions, and resource scope | ION user personas, delegated scopes, capability permissions, Teams membership, or domain policy |
| Customer tenant | Grant or revoke admin consent; assign Portal users and groups; scope Mail.Read with Exchange Online RBAC for Applications; assign Azure RBAC to the hollow app’s service principal | ION platform authorization, capability resolution, or ION-side role assignment |
This division keeps authentication at the edge, capability resolution in Signet, user-context authorization at the BFF, business authority in the domain, and resource permission at the resource — or the customer — that owns it.
External integrations
External integrations have a dedicated identity and permission boundary:
- Customer-facing multi-tenant registrations require explicit customer admin
consent on the
organizationsauthority, and ION verifies the returnedtenantandstateagainst the onboarding record before activation. - Customer Graph and Defender access uses the intent shape selected during onboarding; write capability is not inferred from read access. Mailbox access uses the opt-in phishing app, scoped by the customer with Exchange Online RBAC for Applications (Mailbox-scoped access).
- Customer Azure resource access uses the hollow app; the customer assigns the recommended least-privilege roles (Customer Azure RBAC).
- Access apps and the hollow app authenticate with Workload Identity Federation. Each calling workload’s own UAMI is a FIC on the app. Existing Key Vault client secrets on access apps are transitional; SRE monitors their expiry until migration completes. The 20-FIC limit per app is monitored.
- A non-Azure external caller uses a purpose-specific application identity, expected audience, application role, tenant rule, and revocation path, federating its OIDC token where possible. Certificates are preferred over client secrets where a credential is unavoidable. Credentials and token contents are never logged or documented.
Human access to customer environments uses GDAP/Tenant Governance for Defender XDR (ADR-0033), Azure Lighthouse for Sentinel (ADR-0030), and Teams B2B Direct Connect for collaboration (ADR-0012). Identity owns the primitives — the hollow app, federated credentials, Exchange scoping, and consent — while Customer Environment Access owns per-surface selection and onboarding. Federation setup is in the Workload Identity Federation runbook.
V3 additions
V3 retains the V2 rules that every Azure workload uses managed identity and that user tokens terminate at the BFF, and adds:
- Shell applications and Signet capabilities: one sign-in audience per shell
for all its MFE BFFs, with
<DomainEntity>.<Read|ReadWrite>permissions validated at APIM and bound at the BFF. - Explicit APIM token handling: APIM authenticates to backends with its own
managed identity and forwards the validated caller token in an
APIM-owned
X-Authorization(override required; gap APIM-01). - Structural UAMI per microservice, with system-assigned and shared identities excluded apart from the rome auth identity for Easy Auth.
- Workload Identity Federation for customer-tenant access apps, the hollow app, Easy Auth, and GitHub Actions deployment to Runway.
- The phishing purpose app and hollow app, with customer-side Exchange Online RBAC for Applications and Azure RBAC as their authorization boundaries.
organizationsadmin consent withtenantandstateverification.- GDAP/Tenant Governance for human Defender XDR access, owned by Customer Environment Access.
Workflows, guidelines, and implementation
- V3 identity guidelines
- Identity workflows
- Shell and MFE workflow
- Customer Azure RBAC workflow
- Mailbox access workflow
- Application registration
- Managed identity
- Application roles
- Workload Identity Federation
- App Service authentication
- Customer onboarding
- Lifecycle and operations
- V3 identity architecture
- Microsoft Entra ID
- Capabilities
- Micro-frontends capability service design
Related decisions
- ADR-0009 — Entra ID as the identity provider
- ADR-0010 — Split customer access applications by permission shape
- ADR-0011 — Customer-tenant Azure RBAC through a hollow app
- ADR-0012 — Teams shared-channel collaboration
- ADR-0013 — Service-to-service authentication
- ADR-0014 — Shared APIM topology
- ADR-0023 — MFE UI architecture
- ADR-0024 — CI/CD with Runway and GitHub Actions
- ADR-0030 — Customer environment access
- ADR-0033 — Customer environment access through GDAP