ION DocsV2
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Architecture
  2. ION Architecture V2
  3. V2 Well-Architected
  4. V2 Security
  5. V2 Identity
  6. Applications and Authorization

Applications and Authorization

security
VersionV2V3
architecturev2

Applications and Authorization

ION V2 separates user sign-in, API audiences, workload identity, and resource authorization. Microsoft Entra ID authenticates each caller, but possession of a valid token is never sufficient by itself: APIM, the BFF, the domain service, and the target Azure resource enforce different parts of the authorization contract.

Microsoft Entra ID defines the directory and user-population topology. ADR-0013 — Service-to-service authentication defines the normative token boundaries used on this page.

Application classes

ClassTrust and registration modelAuthentication flowAuthorization boundary
SPA / public clientBrowser frontend; separate customer multi-tenant and internal single-tenant registrationsAuthorization Code with PKCE; no client secretMay request only user-delegated access to its BFF audience; UI checks are advisory, not authoritative
BFF / confidential boundaryServer-side API registration paired with the relevant frontend and tenancy modelAccepts the validated user request; uses the BFF’s managed identity for downstream callsTerminates the user token, enforces route, persona, customer, tenant, and operation policy, and shapes responses
API / resource applicationRegistration that exposes an API audience, delegated scopes, or application roles; internal platform APIs use the ION Platform API role catalogueReceives Entra access tokens for its own audienceEnforces required roles or scopes and delegates domain invariants to the owning service
Azure workload managed identityEvery Azure-hosted ION workload uses managed identity; an identity is assigned only the API roles and Azure RBAC required by that workloadAcquires a token for the target API or Azure resourceApplication roles authorize ION API calls; Azure RBAC authorizes Azure control-plane or data-plane calls
External integrationPurpose-specific app registration or external enterprise application for callers or targets outside the Azure workload boundaryClient credentials with certificate where supported, or the provider’s approved Entra flowConsent, application permissions, tenant association, and integration-specific allow-lists constrain access

Public clients cannot protect credentials. Confidential components keep their credential boundary server-side. All Azure workloads use managed identity and do not use embedded client secrets or certificate credentials. External integrations that cannot use an Azure managed identity use a purpose-scoped application registration and an owned credential lifecycle.

Registration model

Registrations are divided by responsibility rather than reused as a general platform credential:

  1. Separate environments. Development, test, staging, and production have separate registrations, owners, redirect URIs, audiences, assignments, and credentials.
  2. Separate public client and resource API. A frontend registration handles sign-in; its BFF or API registration exposes the intended API audience and permissions. Tightly coupled exceptions require the same trust and lifecycle boundary.
  3. Separate internal and customer tenancy. Alya and advisor applications are single-tenant. Customer Portal applications that accept customer-directory users are multi-tenant and require customer administrator consent.
  4. Separate advisor access. Advisor on-behalf-of capability is not present in the customer-consented registration. The dedicated advisor registration lets APIM and the BFF require the Ontinue advisor role. That role currently grants access to every active onboarded customer; there is no per-advisor customer assignment.
  5. Separate integration intent. Customer Graph and Defender permissions are split into bounded read/write profiles as defined by ADR-0010.
  6. Shared internal role vocabulary. The single-tenant ION Platform API resource application declares the Ion.* application roles used by internal service callers. Role assignment, not registration reuse, determines each workload’s capabilities.

Registration owners maintain the supported account type, redirect URIs, audience, exposed scopes, app roles, admin consent, credentials where required, and offboarding path. Wildcard or unowned redirect URIs are prohibited.

User traffic: browser to BFF

The BFF is the user-token termination boundary. User tokens never propagate beyond the BFF. Downstream ION services and Azure resources receive a token for the BFF’s workload identity, not the browser’s token.

  1. The SPA obtains a token for its intended customer or internal API audience.
  2. APIM validates the user token and route, obtains a backend token as its managed identity, and routes only to the corresponding BFF. Approved BFF routes receive the validated original token as sensitive X-Authorization context while backend Authorization contains the APIM token.
  3. The BFF revalidates and terminates the original user token and performs route and customer-context authorization. No downstream domain service receives it.
  4. For a downstream call, the BFF acquires an application token with its managed identity for the ION Platform API audience.
  5. APIM validates the BFF token and its Ion.* role, then obtains a token as the selected APIM managed identity for the OAuth-protected backend. The backend authenticates APIM; validated workload and customer context remains application data rather than a bearer credential to replay.
  6. The domain service enforces operation and state invariants. If it calls an Azure resource, it uses its own managed identity and the resource enforces Azure RBAC.

The frontend may hide unavailable features, but frontend state is not an authorization decision. Requests are re-authorized at the server boundaries.

Service-to-service and Azure-resource traffic

Every Azure-hosted caller authenticates with managed identity. For an ION API call, the caller requests a token for the ION Platform API audience; its assigned Ion.* application roles are carried in the token.

When the call traverses APIM, APIM validates the caller’s managed-identity token, including expected audience, approved caller, expiry, signature, and required application role. APIM then obtains a second token as the selected APIM user-assigned managed identity and replaces backend Authorization. The backend OAuth boundary authenticates APIM; caller identity and authorization decisions remain attributable in APIM audit and bounded trusted context rather than by replaying the caller credential.

Direct calls to Azure services use a token for that Azure resource. The target resource authorizes the managed identity through Azure RBAC at the smallest practical scope. An ION API app-role assignment does not imply Azure-resource access, and an Azure RBAC assignment does not imply permission to invoke an ION API.

The managed-identity and role model is specified in ADR-0013 and applied by the microservice identity workflow, managed-identity runbook, and API Management architecture.

Roles, scopes, RBAC, and Teams membership

These mechanisms answer different authorization questions and are not interchangeable.

MechanismApplies toMeaning in V2Enforcement point
Application roles (roles)Application-only callers and assigned users/groups where the resource app permits themA named capability on an ION API, using the Ion.* vocabularyAPIM performs coarse route checks; BFF or API enforces operation-specific requirements
Delegated scopes (scp)A public or confidential client acting on behalf of a signed-in userThe client may perform a bounded operation in the user’s contextAPIM and the receiving BFF/API validate the required scope and user context
Azure RBACAzure management and data-plane resourcesThe principal may perform Azure actions or data actions at an assigned resource scopeAzure Resource Manager or the target Azure service
Teams/channel membershipOntinue-hosted shared collaboration spacesThe person may participate in a particular Team or channelEntra B2B Direct Connect and Microsoft Teams

Teams membership is not proof of an ION API role, a customer subscription, an advisor role, Sentinel access, or Azure RBAC. Likewise, an application role does not bypass customer, tenant, workspace, ownership, or domain-state checks.

Multi-tenant token validation

Customer-facing APIs accept tokens from approved customer Entra directories, not from every organizational directory merely because the registration is multi-tenant. APIM fails closed unless all required checks succeed:

  • Verify signature, validity interval, token version, and expected audience.
  • Derive the issuer expectation from the token’s tenant and validate the issuer according to Entra’s multi-tenant rules; do not trust an arbitrary issuer.
  • Check the tenant claim against the active customer-tenant subscription and onboarding record.
  • Require the route’s application role or delegated scope; roles and scp are not substitutes for one another.
  • For advisor routes, validate the Ontinue advisor identity and advisor permission, then require the requested customer to be active and onboarded. The advisor role applies to all such customers.
  • Preserve safe tenant, caller, route, and correlation context for audit without logging bearer tokens or authorization headers.

A customer token cannot target the internal ION Platform API audience and cannot be routed directly to a domain backend. Internal single-tenant flows use the Ontinue issuer boundary and do not apply customer multi-tenant acceptance rules.

Enforcement ownership

Authorization is deliberately layered. Passing an earlier layer never disables a later one.

OwnerRequired enforcementDoes not own
APIMValidate signature, issuer/tenant policy, expiry, audience, approved caller, and route-level role or scope; apply customer-tenant allow-listing, throttling, and routing; validate and forward service managed-identity tokens without exchangeDomain state transitions, field-level business rules, or Azure data-plane RBAC
BFFTerminate the user token; bind persona and customer/tenant/workspace context to the request; enforce route and operation permissions; validate the advisor role and active requested customer; prevent over-broad requests and responses; call downstream services with its managed identityGranting Azure-resource permissions or replacing domain invariants
Domain serviceAuthenticate the service identity; validate its audience and required role; enforce operation-specific authorization, aggregate ownership, allowed state transitions, field constraints, and tenant isolation; reject impossible or unsafe domain actionsTrusting the UI or Teams membership as authorization, or forwarding user tokens
Azure resourceAuthenticate the workload managed identity and enforce Azure RBAC, data actions, and resource scopeION user personas, delegated scopes, Teams membership, or domain policy

This division keeps authentication at the edge, user-context authorization at the BFF, business authority in the domain, and resource permission at the resource that owns it.

External integrations

External integrations have a dedicated identity and permission boundary:

  • Customer-facing multi-tenant registrations require explicit customer admin consent and are associated with the onboarded tenant.
  • Customer Graph and Defender access uses the permission profile selected during onboarding; write capability is not inferred from read access.
  • Azure-hosted ION integration workers use managed identity for their ION and Azure dependencies.
  • A non-Azure external caller uses a purpose-specific application identity, expected audience, application role, tenant rule, and revocation path.
  • Certificates are preferred over client secrets where an external confidential client requires a credential. Credentials and token contents are never logged or documented.

Customer-environment permissions and consent are detailed in Customer Environment Access and ADR-0010.

V2 scope

V2 does not use Federated Identity Credentials, GDAP, hollow customer applications, or the later BFF-per-MFE identity design. Those mechanisms must not be introduced into a V2 flow by implication. This exclusion does not weaken the V2 rules that all Azure workloads use managed identity and that user tokens terminate at the BFF.

Workflows, guidelines, and implementation

  • V2 identity guidelines
  • Identity workflows
  • Application registration
  • Managed identity
  • Application roles
  • Customer onboarding
  • Lifecycle and operations
  • V2 identity architecture
  • Microsoft Entra ID

Related decisions

  • ADR-0009 — Entra ID as the identity provider
  • ADR-0010 — Split customer access applications by permission shape
  • ADR-0012 — Teams shared-channel collaboration
  • ADR-0013 — Service-to-service authentication

On this page

  • Application classes
  • Registration model
  • User traffic: browser to BFF
  • Service-to-service and Azure-resource traffic
  • Roles, scopes, RBAC, and Teams membership
  • Multi-tenant token validation
  • Enforcement ownership
  • External integrations
  • V2 scope
  • Workflows, guidelines, and implementation
  • Related decisions
PreviousV2 Identity
NextV2 Identity Architecture
Edit on GitHubSecurity