Application Registration
Use this runbook to create or change a V3 shell, ION Platform API, customer access, hollow, or external-integration registration, and to wire an MFE BFF into the shell’s authorization boundary. Azure-hosted workloads authenticate with their own managed identity, not with an application credential.
Prerequisites
- An accountable application owner and operational owner.
- The target environment and Runway deployment pipeline.
- A data-flow description naming browser shell, APIM, BFF, downstream APIs, Azure resources, and customer tenants.
- A tenancy decision: internal registrations are single-tenant; shell and access registrations are multi-tenant only when customer tenants must sign in or consent.
- Defined audiences, redirect and logout URIs, delegated scopes or application roles, and expected callers.
- Security approval for new multi-tenant exposure or new permissions.
Registration plan
Create an environment-specific registration for each distinct responsibility:
| Responsibility | Registration characteristics |
|---|---|
| Shell SPA (for example Alya or the customer portal) | Public client; Authorization Code with PKCE; no secret, certificate, or private key. The shell’s Entra token is the one token every MFE BFF in that shell accepts. |
ION Platform API app azsp-ontinue-rome-idm-ion-platform-{env}-01 | Single-tenant; defines the Ion.* application-role catalogue; the only audience backend Easy Auth accepts; APIM’s managed-identity token targets it; trusts the rome auth identity as a FIC for Easy Auth |
Customer access apps (azsp-ontinue-ion-access-*-prd-01) | Multi-tenant; fixed application-permission set per ADR-0010; federated credentials only, one FIC per calling workload UAMI |
Hollow app azsp-ontinue-ion-access-azure-rbac-prd-01 | Multi-tenant; zero API permissions; federated credentials only (ADR-0011) |
| Non-Azure integration | Separate application; OIDC federation from the provider where supported, otherwise the exception in Lifecycle and operations |
Do not create an app registration for an Azure workload to give it a client credential. Provision a UAMI instead. Do not register a separate audience per MFE BFF.
Steps
Declare the registration
Owner: Platform identity
Add the registration and enterprise-application declarations to the approved identity automation repository. Use environment-derived references; do not embed production object IDs in documentation or application source.
Set the supported account types
Owner: Platform identity
- Single tenant for the ION Platform API app, Alya, and internal-only APIs.
- Organizational multi-tenant (
AzureADMultipleOrgs) for customer-facing shells and customer access applications. Never allow personal Microsoft accounts.
Configure credentials as federated only
Owner: Platform identity
Every new registration starts with no password or key credentials:
- Shell SPA: public client, no credentials of any kind.
- Platform API app: the rome auth identity as its only FIC (App Service authentication).
- Access and hollow apps: one FIC per calling workload UAMI (Workload identity federation).
- Non-Azure integration: a FIC for the provider’s OIDC issuer and subject where supported.
A client secret or certificate is created only under an approved non-Azure integration exception. Existing Key Vault secrets on access applications are transitional and follow the migration in Workload identity federation.
Configure the shell SPA
Owner: Shell team
Configure Authorization Code with PKCE, disable implicit access-token and
ID-token issuance, and request only the shell’s own scope. Keep tokens out of
persistent browser storage. Declare exact HTTPS redirect and logout URIs,
verify DNS ownership, and remove wildcard, stale, production localhost, and
unowned URIs.
Define the Platform API app roles
Owner: Platform identity
Define Ion.* application roles on the Platform API app only through
Application roles. Do not define application roles on
access applications or BFF registrations.
Configure APIM ingress and backend authentication
Owner: API owner
APIM validates the inbound token (signature, issuer and tenant binding, time,
audience, caller, role or capability, and active tenant allowlist), then calls
the backend with its own managed-identity token for the Platform API app.
It forwards the validated caller token in X-Authorization and must
override any client-supplied value. The example below shows the required
override; the deployed global policy still uses skip (gap
APIM-01).
<inbound>
<base />
<validate-azure-ad-token tenant-id="{{ontinue-tenant-id}}" header-name="Authorization"
failed-validation-httpcode="401" output-token-variable-name="callerToken">
<audiences>
<audience>{{route-audience}}</audience>
</audiences>
</validate-azure-ad-token>
<!-- Overwrite any client-supplied value with the validated caller token -->
<set-header name="X-Authorization" exists-action="override">
<value>@(context.Request.Headers.GetValueOrDefault("Authorization"))</value>
</set-header>
<!-- Replace Authorization with APIM's own token for the ION Platform API app -->
<authentication-managed-identity resource="{{ion-platform-api-app-id}}"
client-id="{{apim-uami-client-id}}" />
</inbound>Multi-tenant shell routes validate issuer-to-tenant binding against the
onboarded-tenant allowlist instead of a single tenant ID. MFE routes also run
Signet’s coarse capability check on X-Capabilities (Capabilities).
See API Management for the shared policy
fragments.
Configure backend Easy Auth
Owner: Service team
Protect the BFF or API host with Easy Auth against the Platform API app, using the rome auth identity as the client assertion (App Service authentication). Easy Auth accepts only the Platform API audience; a user or shell token presented directly to the backend is rejected.
Wire the MFE BFF to Signet
Owner: Service team
Register the shared capability middleware from Ontinue.Ion.Capabilities.Signet
and gate only MFE routes:
using Ontinue.Ion.Capabilities.Signet;
services.AddCapabilitiesValidation(configuration);
// isMfeRoute is the BFF's predicate for MFE routes; the middleware verifies
// X-Capabilities and binds it to the Entra token on the same request.
app.UseWhen(isMfeRoute, …);The middleware verifies the capability token and binds it to the validated
caller token: entra_aud equals the Entra aud, sub equals the Entra oid,
and the capability scope allows the Entra tid. Every MFE BFF in a shell
accepts that shell’s Entra token; there is no per-BFF audience. Each route then
reads the verified claims from context, requires its specific
DomainEntity.Read or DomainEntity.ReadWrite permission, re-checks tenant
scope for the resource, and strips fields the persona may not see. See the
Signet design.
Terminate the user token at the BFF
Owner: Service team
User tokens stop at the BFF. Downstream calls use the BFF’s own UAMI and a new target-specific token. User tokens and authorization headers are not copied to services, messages, storage, telemetry, Azure APIs, or Graph. Domain services enforce tenant isolation and business invariants again.
Record and deploy
Owner: Platform identity
Record owners, purpose, environment, tenancy, audiences, URI ownership, permissions, FICs, review date, and revocation path in the inventory. Deploy through the approved Runway pipeline. Use the portal only to inspect the resulting state, and reconcile any emergency manual change into automation immediately.
Positive validation
- Sign in through the expected tenant and redirect URI using Authorization Code with PKCE.
- Call the expected APIM route and confirm APIM accepts the audience, caller, tenant, and role or capability.
- Confirm the backend receives APIM’s Platform API token in
Authorizationand the validated caller token inX-Authorization. - Confirm Signet binding succeeds and a permitted MFE route returns only the fields the persona may see.
- Confirm the BFF obtains a separate managed-identity token for a downstream dependency.
- Confirm the registration has no password or key credentials (or a recorded exception).
- Confirm logs contain decision, tenant and application references, route, and correlation ID but no token or authorization header.
Negative validation
Verify denial for each applicable case:
- wrong or inactive customer tenant, or issuer not bound to the token tenant;
- wrong audience, client application, redirect URI, expired or not-yet-valid token, or invalid signature;
- a client-supplied
X-Authorizationheader (it must be overwritten, never trusted); - a missing, expired, or modified
X-Capabilitiestoken, or one minted for another user, audience, or tenant; - a missing route permission, or a read-only persona attempting a write;
- right permission against the wrong customer or resource;
- a user or shell token sent directly to the backend, bypassing APIM; and
- browser build or runtime configuration containing a secret, private key, or certificate.
Record status codes and correlation IDs, not token bodies.
Rollback and revocation
- Disable the new route or deployment if exposure is unsafe.
- Restore the previous declarative registration, redirect URI, scope, role, FIC, and APIM or BFF policy revision.
- Revoke newly granted consent, FICs, or assignments that are no longer required.
- Disable rather than immediately delete a registration needed for investigation; preserve audit evidence under the retention policy.
- Prove the removed caller, URI, tenant, FIC, or permission fails, and prove the prior supported path still succeeds.
Ownership and evidence
The application owner owns audience, tenancy, URI, and permission semantics. Platform identity owns deployment, FICs, and inventory. API and service owners own APIM, Easy Auth, and BFF enforcement. Retain approvals, declarative diff, pipeline result, safe test evidence, inventory update, review date, and rollback result.