V2 Identity Standard
This page is the single normative identity standard for ION V2. The terms MUST, MUST NOT, and SHOULD are requirements as defined by RFC 2119. An implementation that does not meet a MUST or MUST NOT is non-compliant and requires remediation; another identity document cannot weaken these requirements.
Trust boundaries
- Microsoft Entra ID MUST authenticate ION users and Azure workloads.
- Authentication MUST NOT be treated as authorization. Every request MUST be authorized for its caller, tenant, resource, and operation.
- Internal Alya identities, customer Portal identities, workload identities, Azure-resource permissions, customer-environment permissions, and Teams membership MUST remain separate trust and authorization boundaries.
- Application registrations MUST be separated by environment. Production registrations and permissions MUST NOT be shared with non-production environments.
- A browser application and the API or BFF it calls MUST use separate application registrations when they expose different audiences or permissions.
- Redirect URIs and application ID URIs MUST be explicit, HTTPS except for approved local development, owned, and free of wildcards.
- Browser clients MUST NOT contain or persist a client secret, certificate private key, workload credential, or other application credential. Public clients MUST use Authorization Code with PKCE and MUST NOT use implicit flow.
User-token termination
- Portal and Alya user tokens MUST terminate at their BFF. APIM MUST validate the inbound token before routing it to the BFF, and the BFF MUST be the final application boundary that consumes it.
- A Portal or Alya user token MUST NOT be forwarded by the BFF or APIM to a domain service, another microservice, queue, topic, event, storage service, database, telemetry system, Azure management endpoint, Azure data-plane endpoint, or Microsoft Graph.
- A BFF calling a downstream API or Azure resource MUST obtain a new workload token with its managed identity for the exact target audience. It MUST NOT use an on-behalf-of exchange to propagate the user token downstream.
- User and customer context needed downstream MUST be represented as validated, minimal application data. It MUST NOT include the original token or authorization header, and downstream services MUST NOT trust that context without authenticating the workload caller and enforcing resource and business authorization.
- Bearer tokens, authorization headers, refresh tokens, authorization codes, client assertions, secrets, and private keys MUST NOT be logged, traced, placed in exception text, or included in support artifacts. Token-derived telemetry SHOULD be limited to non-sensitive identifiers required for investigation, such as tenant, application, subject pseudonym, route, decision, and correlation ID.
Token validation and authorization
- APIM MUST validate token-based ingress before routing it. For each route it MUST validate the expected token type, signature, issuer, validity time (
nbfandexp), audience, caller identity, and required role or delegated scope. - For a multi-tenant user token, APIM and the BFF MUST each validate the signature, issuer-to-tenant binding, validity time, audience, authorized caller, required role or delegated scope, and active membership of the token tenant in the authoritative onboarded-tenant allowlist. A syntactically valid tenant ID or successful customer consent is not sufficient.
- Caller validation MUST verify the authorized client application or workload identity, using the appropriate
azp,appid, object, or subject claim for the token version and flow. It MUST NOT accept any caller solely because the audience is valid. - Application-only calls MUST require an application role. User-delegated calls MUST require the delegated scope or user role defined by the route.
rolesandscpMUST NOT be treated as interchangeable. - The Portal or Alya BFF MUST revalidate the user token and MUST authorize user, customer, and tenant context before acting or creating downstream application context.
- Domain services MUST authenticate the calling workload and MUST enforce resource ownership, customer isolation, operation permission, and business rules. APIM or BFF approval MUST NOT replace domain authorization.
- Authorization failures MUST fail closed and MUST NOT disclose token-validation internals or customer data.
- Teams or channel membership MUST NOT substitute for ION API authorization, Azure RBAC, or customer-environment authorization.
Azure workload identity
- Every workload running on Azure MUST use a managed identity for service-to-service authentication and access to Azure control-plane or data-plane resources.
- An Azure workload MUST NOT use a client secret or certificate credential as an alternative or fallback to managed identity.
- Either a system-assigned managed identity (SAMI) or a user-assigned managed identity (UAMI) satisfies the mandatory managed-identity requirement.
- A SAMI SHOULD be used when one Azure resource owns the workload identity and the identity should be created and deleted with that resource.
- A UAMI SHOULD be used when the identity and its assignments must survive resource replacement, must be pre-authorized, or must attach to multiple resources that implement the same workload.
- The V2 service architecture MUST use one UAMI per microservice where stable identity lifecycle is required. That UAMI MUST NOT be shared by unrelated microservices.
- Managed identity token acquisition MUST request the exact target API or Azure-resource audience. Tokens MUST NOT be reused across audiences.
- API application roles and Azure RBAC MUST be assigned independently at the smallest practical scope. Broad subscription, resource-group, or catch-all application roles MUST NOT be used when a narrower assignment meets the operation.
- A workload identity MUST NOT receive delegated user scopes.
Applications, roles, scopes, and RBAC
- Each application registration, enterprise application, managed identity, role definition, app-role assignment, delegated scope, consent grant, Azure RBAC assignment, and exceptional credential MUST have an accountable owning team.
- Identity configuration MUST be declared in version-controlled automation. Production portal changes MUST NOT be the system of record. An emergency portal change MUST be reviewed and reconciled into automation before the incident or change record closes.
- Application roles MUST use the canonical
Ion.<Resource>.<Operation>[.<Constraint>]vocabulary. The optional constraint MUST represent a stable authorization distinction that cannot be enforced solely from customer or resource context. Names MUST describe a stable business capability rather than a caller, environment, implementation, or temporary project. - Allowed member types MUST match the intended principal: applications for workload access; users/groups for interactive assignment; both only when the same semantic permission is valid and enforced for both.
- Role evolution MUST be additive. A published role value or semantic meaning MUST NOT be repurposed. Removal MUST follow usage discovery, migration, validation, and revocation.
ReadWriteMUST NOT be assumed to grant delete, administration, consent, or role management unless those operations are explicitly defined in the API contract.- Permission grants MUST be least privilege and MUST have a documented justification, approval, review interval, and revocation procedure.
- Every identity, role catalogue, consent, app-role assignment, and Azure RBAC assignment MUST be inventoried and periodically reviewed. Stale, unused, orphaned, excessive, or expired access MUST be revoked.
Customer tenancy and onboarding
- Customer access MUST be activated through a controlled onboarding record that binds the customer, tenant, approved applications, consent state, roles, Teams shared-channel relationship, enabled capabilities, owner, and review date.
- Multi-tenant applications MUST accept only onboarded, active customer tenants. Open-ended acceptance of any Entra tenant MUST NOT grant product access.
- Customer administrator consent MUST be verified for the intended tenant and permission set. Consent MUST NOT replace tenant allowlisting or user and resource authorization.
- Teams B2B Direct Connect and shared-channel relationships MUST be verified before Teams-based customer access is activated. Teams membership MUST remain distinct from API roles.
- Customer offboarding MUST disable the allowlist entry first, then revoke consent, application assignments, Teams relationships, customer-environment permissions, and residual sessions or caches.
- Customer security-resource access MUST also comply with Customer Environment Access.
Lifecycle, evidence, and incidents
- Identity changes MUST include positive and negative authorization tests before production activation.
- Every identity or permission change MUST retain evidence of request, owner, approval, declarative change, deployment result, positive test, negative test, and rollback or revocation result.
- Owners MUST monitor failed authentication, failed authorization, consent, app-role assignment, RBAC assignment, managed-identity, and credential events without recording tokens.
- Reviews MUST confirm continued owner, purpose, caller, tenant, audience, permission, resource scope, usage, and revocation readiness.
- Suspected token or credential exposure MUST trigger immediate containment, revocation where possible, assignment review, log-preserving investigation, and validation that old access fails.
- Credentials required by an exceptional non-Azure integration MUST be security-approved, stored in the approved secret manager, assigned an owner and expiry, rotated, monitored, and revoked at retirement. This exception MUST NOT be applied to an Azure workload.
V2 exclusions
The following MUST NOT be represented as V2 identity mechanisms:
- federated identity credentials (FIC) or workload identity federation;
- hollow customer applications or FIC-based customer Azure RBAC;
- GDAP;
- the V3 embedded Portal Tab identity model; or
- V3 role-owner applications or BFF-per-MFE identity patterns.
Implementation
Use the actionable V2 identity implementation guide and its links to identity architecture, identity workflows, and Customer Environment Access.