Applications and Authorization
ION V2 separates user sign-in, 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, the BFF, the domain service, and the target Azure resource 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.
Application classes
| Class | Trust and registration model | Authentication flow | Authorization boundary |
|---|---|---|---|
| SPA / public client | Browser frontend; separate customer multi-tenant and internal single-tenant registrations | Authorization Code with PKCE; no client secret | May request only user-delegated access to its BFF audience; UI checks are advisory, not authoritative |
| BFF / confidential boundary | Server-side API registration paired with the relevant frontend and tenancy model | Accepts the validated user request; uses the BFF’s managed identity for downstream calls | Terminates the user token, enforces route, persona, customer, tenant, and operation policy, and shapes responses |
| API / resource application | Registration that exposes an API audience, delegated scopes, or application roles; internal platform APIs use the ION Platform API role catalogue | Receives Entra access tokens for its own audience | Enforces required roles or scopes and delegates domain invariants to the owning service |
| Azure workload managed identity | Every Azure-hosted ION workload uses managed identity; an identity is assigned only the API roles and Azure RBAC required by that workload | Acquires a token for the target API or Azure resource | Application roles authorize ION API calls; Azure RBAC authorizes Azure control-plane or data-plane calls |
| External integration | Purpose-specific app registration or external enterprise application for callers or targets outside the Azure workload boundary | Client credentials with certificate where supported, or the provider’s approved Entra flow | Consent, application permissions, tenant association, and integration-specific allow-lists constrain access |
Public clients cannot protect credentials. Confidential components keep their credential boundary server-side. All Azure workloads use managed identity and do not use embedded client secrets or certificate credentials. External integrations that cannot use an Azure managed identity use a purpose-scoped application registration and an owned credential lifecycle.
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, and credentials.
- Separate public client and resource API. A frontend registration handles sign-in; its BFF or API registration exposes the intended API audience and permissions. Tightly coupled exceptions require the same trust and lifecycle boundary.
- Separate internal and customer tenancy. Alya and advisor applications are single-tenant. Customer Portal applications that accept customer-directory users are multi-tenant and require customer administrator consent.
- Separate advisor access. Advisor on-behalf-of capability is not present in the customer-consented registration. The dedicated advisor registration lets APIM and the BFF require the Ontinue advisor role. That role currently grants access to every active onboarded customer; there is no per-advisor customer assignment.
- Separate integration intent. Customer Graph and Defender permissions are split into bounded read/write profiles as defined by ADR-0010.
- Shared internal role vocabulary. The single-tenant
ION Platform APIresource application declares theIon.*application roles used by internal service callers. Role assignment, not registration reuse, determines each workload’s capabilities.
Registration owners maintain the supported account type, redirect URIs, audience, exposed scopes, app roles, admin consent, credentials where required, and offboarding path. Wildcard or unowned redirect URIs are prohibited.
User traffic: browser to 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 workload identity, not the browser’s token.
- The SPA obtains a token for its intended customer or internal API audience.
- APIM validates the user token and route, obtains a backend token as its managed
identity, and routes only to the corresponding BFF. Approved BFF routes receive
the validated original token as sensitive
X-Authorizationcontext while backendAuthorizationcontains the APIM token. - The BFF revalidates and terminates the original user token and performs route and customer-context authorization. No downstream domain service receives it.
- For a downstream call, the BFF acquires an application token with its managed
identity for the
ION Platform APIaudience. - APIM validates the BFF token and its
Ion.*role, then obtains a token as the selected APIM managed identity for the OAuth-protected backend. The backend authenticates APIM; validated workload and customer context remains application data rather than a bearer credential to replay. - The domain service enforces operation and state invariants. If it calls an Azure resource, it uses its own managed identity and the resource enforces Azure RBAC.
The frontend may hide unavailable features, but frontend state is not an authorization decision. Requests are re-authorized at the server boundaries.
Service-to-service and Azure-resource traffic
Every Azure-hosted caller authenticates with managed identity. For an ION API
call, the caller requests a token for the ION Platform API audience; its
assigned Ion.* application roles are carried in the token.
When the call traverses APIM, APIM validates the caller’s managed-identity token,
including expected audience, approved caller, expiry, signature, and required
application role. APIM then obtains a second token as the selected APIM
user-assigned managed identity and replaces backend Authorization. The backend
OAuth boundary authenticates APIM; caller identity and authorization decisions
remain attributable in APIM audit and bounded trusted context rather than by
replaying the caller credential.
Direct calls to Azure services use a token for that Azure resource. The target resource authorizes the managed identity through Azure RBAC at the smallest practical scope. 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, and Teams membership
These mechanisms answer different authorization questions and are not interchangeable.
| Mechanism | Applies to | Meaning in V2 | 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 | 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 |
| Azure RBAC | Azure management and data-plane resources | The principal may perform Azure actions or data actions at an assigned resource scope | Azure Resource Manager or the target Azure service |
| 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 customer subscription, an advisor role, Sentinel access, or Azure RBAC. Likewise, an application role does not bypass customer, tenant, workspace, ownership, or domain-state checks.
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 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. - For advisor routes, validate the Ontinue advisor identity and advisor permission, then require the requested customer to be active and onboarded. The advisor role applies to all such customers.
- Preserve safe tenant, caller, route, and correlation context for audit without logging bearer tokens or authorization headers.
A customer token cannot target the internal ION Platform API 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.
Enforcement ownership
Authorization is deliberately layered. Passing an earlier layer never disables a later one.
| Owner | Required enforcement | Does not own |
|---|---|---|
| APIM | Validate signature, issuer/tenant policy, expiry, audience, approved caller, and route-level role or scope; apply customer-tenant allow-listing, throttling, and routing; validate and forward service managed-identity tokens without exchange | Domain state transitions, field-level business rules, or Azure data-plane RBAC |
| BFF | Terminate the user token; bind persona and customer/tenant/workspace context to the request; enforce route and operation permissions; validate the advisor role and active requested customer; prevent over-broad requests and responses; call downstream services with its managed identity | Granting Azure-resource permissions or replacing domain invariants |
| Domain service | Authenticate the service identity; validate its audience and required role; 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 forwarding user tokens |
| Azure resource | Authenticate the workload managed identity and enforce Azure RBAC, data actions, and resource scope | ION user personas, delegated scopes, Teams membership, or domain policy |
This division keeps authentication at the edge, user-context authorization at the BFF, business authority in the domain, and resource permission at the resource that owns it.
External integrations
External integrations have a dedicated identity and permission boundary:
- Customer-facing multi-tenant registrations require explicit customer admin consent and are associated with the onboarded tenant.
- Customer Graph and Defender access uses the permission profile selected during onboarding; write capability is not inferred from read access.
- Azure-hosted ION integration workers use managed identity for their ION and Azure dependencies.
- A non-Azure external caller uses a purpose-specific application identity, expected audience, application role, tenant rule, and revocation path.
- Certificates are preferred over client secrets where an external confidential client requires a credential. Credentials and token contents are never logged or documented.
Customer-environment permissions and consent are detailed in Customer Environment Access and ADR-0010.
V2 scope
V2 does not use Federated Identity Credentials, GDAP, hollow customer applications, or the later BFF-per-MFE identity design. Those mechanisms must not be introduced into a V2 flow by implication. This exclusion does not weaken the V2 rules that all Azure workloads use managed identity and that user tokens terminate at the BFF.
Workflows, guidelines, and implementation
- V2 identity guidelines
- Identity workflows
- Application registration
- Managed identity
- Application roles
- Customer onboarding
- Lifecycle and operations
- V2 identity architecture
- Microsoft Entra ID