Customer Portal Identity Workflow
The V2 Customer Portal has two deliberately separate user identity boundaries: a multi-tenant customer path and a single-tenant Ontinue advisor path. The paths use separate APIM routes and route-specific authorization policies, but both terminate user access tokens at the same Customer Portal BFF. Teams collaboration is a separate workflow; Teams membership never grants Portal API access.
Customer users authenticate in their own customer home tenant — not in an Ontinue tenant. Their customer-tenant identity, lifecycle, MFA, and Conditional Access remain under customer control.
Cyber Advisors authenticate in the Ontinue internal tenant — never in the customer’s tenant. An advisor with the required Ontinue advisor role can access every active onboarded customer; there is currently no per-advisor customer assignment or customer-relationship authority.
Actors and application identities
| Actor or identity | Population | Responsibility |
|---|---|---|
| Customer user | User in an onboarded customer’s home Entra tenant | Sign in and perform customer-authorized Portal operations |
| Cyber Advisor | Ontinue internal user with the advisor role | Use the separately governed advisor path for any active onboarded customer |
| Customer Portal client | Environment-specific, customer-facing multi-tenant application registration | Request customer user-delegated access only for the Customer Portal BFF audience |
| Advisor Portal client | Environment-specific, Ontinue single-tenant application registration | Request advisor user-delegated access through the dedicated advisor APIM routes |
| Customer Portal BFF | Shared Azure-hosted backend with its own managed identity | Terminate both customer and advisor user tokens; apply the authorization contract selected by the APIM route; call downstream services as itself |
| Downstream ION service | Azure-hosted API or service with its own managed identity | Authorize the BFF’s workload identity and execute the requested operation |
Customer users remain governed by their home tenant. The Portal’s customer-facing application boundary is multi-tenant, but access is limited to tenants and customers that have completed ION onboarding. The Ontinue advisor path is single-tenant and separately authorized through dedicated APIM routes so customer-facing grants cannot confer support or customer-switching capability, and advisor grants cannot be presented as customer identity. Both route families resolve to the same Customer Portal BFF implementation and managed identity.
Roles and Permissions
Naming convention: <platform>.<resource>.<operation>
Examples:
- Ion.DefenderWorkbench.*
- Ion.AutomationWorkbench.*
Customer Portal - SPA Overview
SSO in Teams Tab

Customer Portal PowerBI Embed
Customer user login flow
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 BFF, never a downstream
domain service. APIM validates it and supplies it to the shared BFF only as
sensitive X-Authorization context while backend Authorization contains an APIM
managed-identity token. The BFF MUST NOT propagate the user token in any header,
message, background job, storage, or telemetry. Each downstream call starts with
the BFF’s managed identity; APIM validates that caller and uses its own managed
identity to authenticate to the protected domain backend.
OBO Flows

Advisor login and on-behalf-of customer access
The advisor signs in with an Ontinue identity issued by the Ontinue internal tenant. 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 shared Customer Portal BFF resolves it to an active onboarded customer. The advisor role currently authorizes the advisor to use the support surface for all active onboarded customers. There is no per-advisor customer assignment check. The advisor token terminates at the shared BFF; downstream services receive the BFF managed-identity token and the minimum validated customer context.
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 login paths
APIM validates before routing, and the shared Customer Portal BFF repeats all security-critical validation before consuming the token. The BFF determines the applicable validation and authorization contract from trusted route configuration, not from a client-supplied route or persona value:
| Token property | Validation requirement |
|---|---|
| Signature | Validate against signing keys from the configured Entra OpenID Connect metadata. Accept only configured algorithms and refresh keys when Entra rotates them. |
| Token type and version | Accept an access token in the supported Entra token version. An ID token is never accepted as API authorization. |
Validity (nbf, exp) | Require the token to be active and unexpired, allowing only the platform-approved clock skew. |
Audience (aud) | Require the exact API audience configured for the selected customer or advisor APIM route and environment. Both routes target the shared Customer Portal BFF. |
Authorized client (azp or appid) | Require the expected environment-specific Customer Portal client or Advisor Portal client. A valid token obtained by another application is rejected. |
Delegated scope (scp) | Require the exact delegated scope defined for the route. A workload application role cannot replace it. |
User role (roles) | Where the route requires a user-assigned application role, require that exact role. A delegated scope alone does not grant customer or advisor permission. |
Subject (oid and sub) | Use stable identifiers to resolve the user and assignments. Display name, email, and preferred username are not authorization keys. |
The validator uses metadata selected from trusted configuration. It does not use an unvalidated token to choose an arbitrary authority or signing-key endpoint.
Customer user token
A customer user token is issued by the customer’s home tenant, which is a non-Ontinue tenant. The customer route validates:
| Property | Customer-path requirement |
|---|---|
Issuer (iss) | Require the tenant-specific Entra issuer corresponding to the validated customer tenant; do not require an Ontinue issuer and do not accept an arbitrary organizational issuer. |
Tenant (tid) | Require an active, onboarded customer home tenant. The tenant must agree with the issuer and map to the requested customer. |
Audience (aud) | Require the environment-specific Customer Portal BFF/API audience. |
Client (azp or appid) | Require the environment-specific customer-facing Portal client. |
| Permission | Require the route’s customer delegated scope or user role and the user’s current assignment in the customer enterprise application. |
| Customer context | Resolve the token tenant, user, requested customer, and active ION subscription. Consent or Teams membership alone is insufficient. |
A cryptographically valid token from an organizational tenant that is not an active onboarded ION customer is rejected.
Advisor token
An advisor token is issued only by the Ontinue internal tenant. It is not issued by or accepted from a customer tenant. The advisor route validates:
| Property | Advisor-path requirement |
|---|---|
Issuer (iss) | Require the exact configured issuer for the Ontinue internal tenant and environment. |
Tenant (tid) | Require the Ontinue internal tenant. A token from a customer tenant is rejected even if other claims look valid. |
Audience (aud) | Require the environment-specific audience configured for the advisor APIM routes. It is separate from the customer-consented audience even though both routes target the shared Customer Portal BFF. |
Client (azp or appid) | Require the environment-specific, single-tenant Advisor Portal client. |
| Permission | Require the advisor/support role and the route’s delegated scope. Customer Portal roles do not grant advisor access. |
| Customer scope | Require the requested customer to resolve to an active onboarded customer. The advisor role grants access to all active onboarded customers; no per-advisor customer relationship is evaluated. |
Enforcement after validation
APIM rejects malformed or untrusted tokens and applies distinct customer-route or
advisor-route policies. It then authenticates to the shared OAuth-protected BFF
with the APIM managed identity and supplies the validated original token only as
sensitive X-Authorization context. The BFF authenticates APIM, revalidates and
terminates the original token, then applies the matching route authorization
contract. Customer tokens cannot enter advisor routes, and advisor tokens cannot
enter customer routes, even though the backend implementation is shared.
Downstream APIs ignore user identity asserted by the client and authorize the BFF managed identity using application roles. They apply the validated customer context as an additional boundary and enforce resource ownership and domain rules.
Roles, scopes, and RBAC
- User-delegated scopes or user-assignable Portal roles express Portal operations, such as read or approved write access to incidents, vulnerabilities, machines, and customer-environment configuration.
- Application roles assigned to the BFF managed identity express which downstream ION API operations the BFF may call.
- Azure RBAC grants the BFF or downstream services access to Azure resources and is reviewed independently from API permissions.
- A
ReadWriterole authorizes only the operations defined by the relevant API contract; it does not imply administration or unrestricted deletion.
Onboarding
- Register the customer home tenant — not an Ontinue tenant — and customer context in the authoritative onboarding service.
- Complete administrator consent for the environment-specific customer-facing applications and create the corresponding enterprise applications.
- Assign approved Portal roles to customer-controlled users or groups.
- Configure allowed redirect and logout locations through controlled deployment configuration.
- Provision the Customer Portal BFF managed identity and assign only its required downstream application roles and Azure RBAC.
- Test customer sign-in from the customer home tenant, rejection of an unonboarded or Ontinue tenant on the customer route, read/write separation, customer isolation, and the BFF token-termination rule.
- Test advisor sign-in from the Ontinue tenant, rejection of a customer tenant on the advisor route, advisor-role enforcement, access to multiple active onboarded customers, and denial of an unknown or inactive customer.
Customer security-system permissions are onboarded separately through Customer Environment Access. Portal consent does not by itself grant access to Sentinel, Defender, Graph, or customer Azure resources.
Revocation and offboarding
Disable access by removing user or group role assignments and marking the customer tenant inactive at the Portal boundary. Customer offboarding also removes enterprise applications or consent where agreed, deletes support assignments, and revokes BFF grants that exist only for that customer capability. Cached customer status must have a bounded lifetime and support urgent invalidation.
A disabled customer home-tenant user can no longer obtain a usable new customer token. Existing short-lived tokens remain subject to active-customer and assignment checks at the Portal boundary. Removing an Ontinue advisor role prevents that advisor from accessing every customer through the support path. Marking a customer inactive prevents all advisors from selecting that customer. Security response may also disable the relevant application, remove grants, block the customer tenant, or suspend the advisor support route.
Audit and failure behavior
Authentication failures return an unauthenticated response. A customer user who lacks the required operation or customer assignment receives a forbidden response. An advisor who lacks the advisor role or requests an unknown or inactive customer also receives a forbidden response. Tenant lookup failure, ambiguous customer mapping, or unavailable authorization data fails closed.
Audit events identify whether the path was customer or advisor, the authenticating tenant category, environment, customer context, calling application, user subject, BFF workload identity, operation, customer-resolution decision, authorization result, and correlation identifier. Do not log access tokens, authorization headers, token payloads, or unnecessary user attributes. Repeated cross-customer attempts, consent changes, support access, and role changes generate security telemetry.