Application Registration
Use this runbook to create or change a V2 Portal, Alya, BFF, API, reporting, or external-integration registration. Azure-hosted workload authentication is implemented with managed identity, not an application credential.
Prerequisites
- An accountable application owner and operational owner.
- The target environment and deployment pipeline.
- A data-flow description naming browser, APIM, BFF, downstream APIs, and Azure resources.
- A tenancy decision: internal Alya registrations are single-tenant; customer-facing Portal/API registrations are multi-tenant only when customer tenants must sign in.
- 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 |
|---|---|
| Browser SPA | Public client; Authorization Code with PKCE; no client secret, certificate, or private key; only BFF audience/scopes |
| BFF/API | Separate protected API audience; APIM ingress policy; explicit scopes or roles; Portal/Alya user tokens terminate here |
| Internal API role catalogue | Single-tenant API application exposing stable Ion.* application roles |
| Non-Azure integration | Separate confidential client only after the exception controls in Lifecycle and operations are approved |
Do not create an app registration for an Azure workload merely to give it a client credential. Provision a managed identity instead.
Steps
- 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 supported account types:
- single tenant for Alya and internal-only APIs;
- organizational multi-tenant for customer Portal/API sign-in.
- For a SPA, configure Authorization Code with PKCE, disable implicit access-token and ID-token issuance, and declare no credentials. Keep tokens out of persistent browser storage.
- For a BFF/API, expose one explicit environment-specific audience. Define only the delegated scopes required from the browser and the application roles required from workloads.
- Keep SPA and API registrations separate. Bind the SPA only to the BFF/API scope it needs.
- Declare exact HTTPS redirect and logout URIs. Verify DNS ownership and remove wildcard, stale, localhost production, and unowned URIs.
- Configure APIM and BFF validation for signature, issuer, time, audience, authorized caller, and required role or scope. For multi-tenant routes, also bind issuer to tenant and query the authoritative onboarded-tenant allowlist.
- Configure the BFF so Portal/Alya user tokens stop there. Downstream calls use the BFF managed identity and a new target-specific workload token; user tokens and authorization headers are not copied to services, messages, storage, telemetry, Azure APIs, or Graph.
- Record owners, purpose, environment, tenancy, audiences, URI ownership, permissions, review date, and revocation path in the inventory.
- Deploy through the approved pipeline. Use the portal only to inspect the resulting state. 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 and BFF accept the expected audience, caller, tenant, and scope or role.
- Confirm the BFF maps the validated user/customer context and obtains a separate managed-identity token for a downstream dependency.
- Confirm a permitted domain operation succeeds for the intended customer and resource.
- Confirm logs contain decision, tenant/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;
- issuer not bound to the token tenant;
- wrong audience, client application, redirect URI, expired/not-yet-valid token, or invalid signature;
- missing or wrong delegated scope/application role;
- right role against the wrong customer or resource;
- direct call to a domain service with a user token; and
- browser build or runtime configuration containing a client 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, and APIM/BFF policy revision.
- Revoke newly granted consent 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, or permission fails, and prove the prior supported path still succeeds.
Ownership and evidence
The application owner owns audience, tenancy, URI, and permission semantics. The platform identity owner owns deployment and inventory. The service owner owns APIM/BFF enforcement. Retain approvals, declarative diff, pipeline result, safe test evidence, inventory update, review date, and rollback result.