Customer Portal Identity Workflow
The V3 Customer Portal is the Bondi shell hosting customer-facing micro-frontends (MFEs) (ADR-0023). Bondi has two deliberately separate user identity boundaries: a multi-tenant customer path and a single-tenant Ontinue Cyber Advisor path. Both paths use the same shell, the same Signet capability model, and the same MFE BFFs. They differ in the Entra application the user signs in to, the issuing tenant, and the capability scope Signet grants. Teams collaboration is a separate workflow; Teams membership never grants Portal access.
Actors and application identities
| Concern | Authoritative system | ION responsibility |
|---|---|---|
| Customer user | Customer home Entra tenant | Signs in to the customer portal application and performs customer-authorized Portal operations for their own tenant. |
| Cyber Advisor | Ontinue platform directory | Signs in to the advisor portal application and works with any active onboarded customer. |
| Customer portal application | azsp-ontinue-rome-idm-ion-portal-{env}-01, multi-tenant | Shell sign-in for customer users through the organizations authority; persona public, own-tenant scope. |
| Advisor portal application | azsp-ontinue-rome-idm-ion-portal-advisors-{env}-01, single-tenant | Shell sign-in for Cyber Advisors through the Ontinue tenant-specific authority; persona public, unrestricted scope. |
| Capability issuer | Signet | Resolves shell bondi, persona, scope, permissions, and MFE access from the shell token and signs the capability token. |
| Edge | APIM MFE product | Validates the shell token, calls Signet validations, and authenticates to the MFE BFF with its own managed identity. |
| MFE BFFs | One BFF per MFE, each with its own UAMI | Bind the capability token to the shell token, enforce per-route rules, terminate the user token, and call downstream services as themselves. |
| Downstream ION services | Domain APIs with their own UAMIs | Authorize the calling BFF workload and enforce customer isolation and domain rules. |
The customer path is multi-tenant, but access is limited to tenants that have completed ION onboarding. The advisor path is single-tenant and uses a separate application so customer-facing grants cannot confer advisor capability, and advisor grants cannot be presented as customer identity.
Roles and permissions
Application roles follow <platform>.<resource>.<operation> and are mapped by
Signet to capability permissions in the form DomainEntity.Read or
DomainEntity.ReadWrite.
| Application | Role family | Persona | Signet scope |
|---|---|---|---|
| Customer portal | Ion.Portal.Read, Ion.Portal.ReadWrite | public | Restricted to the caller’s own tenant (tid) |
| Advisor portal | Ion.User.Impersonation.* | public | Unrestricted |
MFEs never branch on role names. They read permissions and mfe_access from the
capability token to shape the UI, and the BFF enforces the route permission. See
Capabilities.
Shell, Teams tab, and Power BI
- Bondi shell. Bondi uses MSAL with Authorization Code and PKCE, acquires the
capability token, and mounts only the MFEs in
mfe_access. The common shell and MFE path is described in Shell and MFE. - Teams tab. Bondi can run as a Teams tab. The shell attempts silent MSAL token acquisition first and falls back to an interactive sign-in when silent acquisition is not possible. The resulting token is the same customer portal shell token; Teams context does not change the authorization path.
- Power BI Embedded. Embedded reports use the purpose-specific
azsp-ontinue-rome-idm-ion-pbiembed-{env}-01application. Embed tokens are issued only after the requesting BFF has authorized the user and the customer context. Azure-hosted reporting components use their own UAMI.
Customer user sign-in and MFE calls
The customer signs in with an identity issued by the customer’s own home tenant. Ontinue does not issue or host the customer’s user identity.
The customer user token audience is the customer portal application, never a BFF
or downstream service. APIM validates it, authenticates to the BFF with its own
managed-identity token for the ION Platform API audience, and supplies the
validated original token only as X-Authorization. The BFF MUST NOT
propagate the user token or the capability token in any header, message,
background job, storage, or telemetry. Each downstream call starts with the BFF’s
own UAMI.
Advisor sign-in and customer context
The advisor signs in with an Ontinue identity. The advisor does not sign in to the customer’s tenant and does not receive or impersonate a customer user’s token.
The requested customer identifier is untrusted input until the BFF resolves it to an active onboarded customer. The unrestricted scope lets the advisor work with all active onboarded customers; an inactive or unknown customer is denied.
In this document, “on behalf of” describes an advisor performing an authorized operation in a customer’s business context. It is not the OAuth On-Behalf-Of token exchange, does not mint a customer user token, and does not propagate the advisor token downstream.
Token validation
Validation common to both sign-in paths
APIM validates before routing, Signet validates the capability token, and the BFF re-validates and binds both before consuming them. Validation metadata is selected from trusted configuration, never from an unvalidated token.
| Token property | Validation requirement |
|---|---|
| Signature | Validate against signing keys from the configured Entra OpenID Connect metadata. Accept only configured algorithms and refresh keys on rotation. |
| Token type | Accept an access token. An ID token is never accepted as API authorization. |
Validity (nbf, exp) | Require an active, unexpired token within the platform clock skew. |
Audience (aud) | Require the customer portal or advisor portal application audience configured for the environment. |
Authorized client (azp or appid) | Require the expected environment-specific Bondi client. |
Subject (oid) | Use the stable object ID. Display name, email, and preferred username are never authorization keys. |
| Capability binding | The capability token entra_aud must equal the token aud, sub must equal oid, and tid must be in scope. |
Customer user token
A customer user token is issued by the customer’s home tenant.
| Property | Customer-path requirement |
|---|---|
Issuer (iss) | Require the tenant-specific Entra issuer that matches tid; do not accept an arbitrary organizational issuer. |
Tenant (tid) | Require an active, onboarded customer tenant. A valid token from a tenant that is not an active ION customer is rejected. |
Audience (aud) | Require the environment-specific customer portal application. |
| Roles | Require Ion.Portal.Read or Ion.Portal.ReadWrite assigned in the customer’s enterprise application. |
| Capability scope | Restricted to the caller’s own tid. Any route or resource for another tenant is denied by Signet and by BFF rule R5. |
Advisor token
An advisor token is issued only by the Ontinue platform directory.
| Property | Advisor-path requirement |
|---|---|
Issuer (iss) | Require the exact configured Ontinue issuer for the environment. |
Tenant (tid) | Require the Ontinue platform directory. A customer-tenant token is rejected. |
Audience (aud) | Require the environment-specific advisor portal application, separate from the customer-consented audience. |
| Roles | Require an Ion.User.Impersonation.* role. Customer portal roles do not grant advisor access. |
| Capability scope | Unrestricted. The requested customer must still resolve to an active onboarded customer. |
Enforcement after validation
- APIM MFE product validates the shell token, rate-limits per
oid, calls SignetPOST /v1/validationswith the route’s tenant or workspace and the method, and fails closed with403. - Signet validations enforce tenant or workspace scope and the write gate
(non-
GET,HEAD, orOPTIONSmethods need a*.ReadWritepermission). - MFE BFF authenticates APIM through Easy Auth on the Platform API audience,
binds the capability token to
X-Authorization, and applies rules R1–R6, including R5 re-checking the specific resource’s tenant and R6 stripping fields thepublicpersona may not see. - Downstream APIs authorize the BFF’s UAMI through
Ion.*application roles, ignore any user identity asserted by a client, and enforce resource ownership.
Roles, scopes, and RBAC
- User application roles on the customer portal and advisor portal applications are the input to Signet. Signet permissions express which MFE operations a user may perform.
ReadWritepermissions authorize only the operations defined by the API contract; they do not imply administration or unrestricted deletion.Ion.*application roles assigned to each BFF UAMI express which downstream ION API operations that BFF may call.- Azure RBAC grants BFFs and services access to Azure resources and is reviewed independently from user and application roles.
Onboarding
- Register the customer home tenant and customer context in the authoritative onboarding service.
- Send the customer administrator the admin consent URL for the customer portal
application:
https://login.microsoftonline.com/organizations/adminconsent?client_id={appClientId}&redirect_uri={registeredRedirect}&state={onboardingState}. Never usecommonand never pre-fill a tenant. - On callback, verify that the returned
tenantandstatematch the onboarding record before activating the tenant. - The customer assigns
Ion.Portal.ReadorIon.Portal.ReadWriteto its own users or groups in the enterprise application. - Configure redirect and logout locations through controlled deployment configuration.
- Test customer sign-in, rejection of an unonboarded tenant, read and write separation, own-tenant isolation, and BFF token termination.
- Test advisor sign-in, rejection of a customer-tenant token on the advisor application, access to multiple active customers, and denial of an inactive customer.
Portal consent does not grant access to Sentinel, Defender, Graph, mailboxes, or customer Azure resources. Those are onboarded separately through Customer Environment Access, Customer Azure RBAC, and Mailbox access. Detailed steps are in Customer onboarding.
Revocation and offboarding
- One customer user. The customer removes the role assignment or disables the user. No new shell token or capability token can be issued; existing capability tokens expire within about one hour.
- One advisor. Removing the
Ion.User.Impersonation.*role prevents new capability tokens for that advisor across every customer. - One customer. Marking the tenant inactive causes APIM and the BFF to reject its tokens and causes advisor requests for that customer to fail resolution. Offboarding then removes the enterprise application or consent where agreed.
- Emergency. Security response may disable the application, block the tenant, or suspend the advisor application. Cached customer status has a bounded lifetime and supports urgent invalidation.
Audit and failure behavior
Missing or invalid Entra tokens return 401. Missing role, out-of-scope tenant,
write without ReadWrite, failed binding, unknown or inactive customer, and
unavailable Signet all return 403. Tenant lookup failure or ambiguous customer
mapping fails closed. The full failure table is in
Shell and MFE.
Audit events identify the path (customer or advisor), tenant, user oid, shell,
persona, route, Signet decision, BFF decision, BFF workload identity, and
correlation ID. Do not log access tokens, capability tokens, authorization
headers, token payloads, or unnecessary user attributes. Repeated cross-tenant
attempts, consent changes, advisor access, and role changes generate security
telemetry.