ION DocsV3
  • 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 V3
  3. V3 Structural Design
  4. ION V3 Platform Views
  5. Micro-Frontends
  6. Micro-Frontends capability service (Signet)

Micro-Frontends capability service (Signet)

architecturev3

Micro-Frontends capability service (Signet)

The identity and access page states the design rule: role logic stays out of MFE code, and access is decided by a capability contract (scope + permissions + MFE access) resolved once and enforced at APIM and the BFF. This page documents the service that realizes that rule — Signet, the ION capabilities service — and the end-to-end flow by which a capability token is minted, carried, validated, and consumed.

It is grounded in the checked-in implementation at signet/ and the design references below. Where a detail is not resolvable from source it is marked TBD rather than invented.

FactValueSource
ServiceSignet — ION capability servicesignet/
Runtime.NET isolated Azure Functions (HTTP)signet/app/src/Ontinue.Ion.Functions.Signet.Http
Short namesgntSignetConstants.App.SIGNET_SERVICE_SHORT
Ownermdr-ksp-teamCODEOWNERS (signet/)
External API (shell)GET /v1/capabilitiessignet/api/signet-ext-specs.yaml
Internal API (APIM)POST /v1/validationssignet/api/signet-int-specs.yaml

The platform Auth / AuthZ pattern defines the capability-based contract conceptually. This page shows how Signet implements it for MFEs. The two reference docs (Capabilities Service Design, Signet Capabilities and Validations — Test Use-Case) are the raw source of record.

Why a capabilities service

A single MFE (e.g. Service Management) runs under two shells — Alya (Ontinue personas, single-tenant Entra app) and Bondi (customer personas, multi-tenant Entra app). Encoding “who can do what under which shell” inside each MFE, and re-deriving it inside every BFF, would couple every team to every Entra role change.

Signet removes that coupling. It is the one place that reads raw Entra app-roles and projects them into a stable, shell-aware capability contract:

One resolver, not N

Entra roles are interpreted once, centrally.

PersonaResolver, RolePermissionsMap, RoleMfeAccessMap and ScopeBuilder live in Signet only. BFFs and MFEs never see Entra app-roles; they see permissions and scope.

Permissions, not roles

The contract is an abstraction above Entra app-roles.

Permissions follow <DomainEntity>.<Read|ReadWrite> (e.g. Incident.ReadWrite). MFEs toggle UI on permissions; they never branch on a role name or a shell name.

Signed once, trusted everywhere

The capability token is minted once and travels unchanged.

An RS512-signed token is produced at shell login and carried end-to-end. APIM and each BFF verify the same signature with a shared public key — no round-trips back to the resolver for the payload.

Fail fast at the edge

Coarse authZ is enforced before the BFF is reached.

APIM's MFE product policy calls Signet to validate scope and a coarse read/write gate, returning 403 before the request ever touches domain code. The BFF remains the final authority on per-resource rules.

The trust chain

The capability token is minted once, at shell login, and then rides every MFE→BFF request. Four parties verify different things; no party trusts the one before it blindly.

Trust boundaries, stated explicitly:

  1. Signet validates the Entra JWT — not APIM. The user’s raw token is the input to capability issuance; Signet checks signature, issuer, and expiry before it mints anything.
  2. The capability token is immutable in transit. It is signed once and carried via the X-Capabilities header unchanged. Nothing downstream re-mints it.
  3. APIM fails closed at the edge. A 403 from /v1/validations is returned to the caller before the BFF is invoked.
  4. The BFF re-verifies and re-binds. It does not trust the header blindly — it re-checks the signature and binds the token to the caller’s Entra identity (see BFF contract).

Token anatomy

Signet mints a compact JWT distinct from the Entra token. Its explicit typ header is what lets every verifier refuse to confuse the two.

PartValueSource
algRS512 (SecurityAlgorithms.RsaSha512)CapabilitiesTokenSigner
typcap+jwt (RFC 8725 explicit typing)CapabilitiesToken.TOKEN_TYPE
kidurnioontinueionsignetCapabilitiesToken.PUBLIC_KEY_SOURCE
audmfe-apimCapabilitiesToken.AUDIENCE
TTLCapabilitiesConfig.TokenTtl (≈ 1 hour; expires_in in seconds)CapabilitiesTokenSigner

Claims:

ClaimMeaningExample
subEntra object id (oid) of the user3fa85f64-…
shellActive shell contextalya | bondi
persona_typePersona classinternal | public
scopeTenant scope (see below){ unrestricted: true } or { unrestricted: false, customers: [{ tenants: ["<tid>"] }] }
permissions<DomainEntity>.<Read|ReadWrite> set["Incident.ReadWrite", "SPI.Read"]
mfe_accessMFEs the user may load["spi_initiatives"]
entra_audThe Entra aud this token was minted for (binding anchor)<PortalAppId>
iat / nbf / expIssued-at / not-before / expiryunix seconds

Key handling:

  • The private signing key lives only in Signet’s Key Vault (issuer-only).
  • The public verification key is published to shared App Configuration (CloudEventCryptoConfig / CapabilitiesCrypto) and resolved by kid, so APIM and every BFF can verify the signature without contacting Signet.

The Capabilities Service Design reference says “RS256 private key” in one line but specifies RS512 in the JOSE header and everywhere else. The implementation is authoritative: RS512 (SecurityAlgorithms.RsaSha512, ValidAlgorithms = [RsaSha512]).

The two endpoints

Signet exposes exactly two surfaces, through two different APIM products, with two different callers.

GET /v1/capabilities — shell login

  • API / product: public signet-ext API under apim-product-signet-ext-{env}. Caller: the shell, with the user’s Entra JWT.
  • Input: Authorization: Bearer <Entra JWT> + X-Shell: alya | bondi.
  • Output (200): { "token_type": "capabilities", "expires_in": 3600, "token": "<RS512 JWT>" }, returned with Cache-Control: no-store and Pragma: no-cache (the token is never cached).
  • Failures: 400 for a missing Authorization or X-Shell header; 403 with a machine-readable code (ShellMismatch, EntraInvalid, NoPersona) when issuance is denied.

POST /v1/validations — APIM edge validation

  • API / product: internal signet-int API under apim-product-signet-int-{env}. Caller: APIM only, via managed identity (the user never calls this).
  • Input: { "capabilities_token": "<token>", "tenant_id": "<tid?>", "request_method": "GET|POST|…" }.
  • Output: 200 with { shell, permissions, … } when scope + write-gate pass; 403 otherwise. The BFF is never reached on 403.

How a capability token is built

CapabilitiesService.IssueCapabilitiesTokenAsync runs these steps in order. Any failure short-circuits with a 403 and a failure code.

1

Parse the requested shell

Owner: Signet

The X-Shell header is parsed into the Shell enum (bondi | alya). An unrecognized value is rejected as ShellMismatch before any crypto work.

2

Validate the Entra JWT and extract claims

Owner: Signet

EntraTokenValidator validates signature, issuer, and expiry, then extracts aud, tid, oid, and roles[]. Missing required claims → EntraInvalid. This is the step that makes Signet — not APIM — the validator of the user’s identity token.

3

Resolve persona from aud + roles

Owner: Signet

PersonaResolver.Resolve(aud, roles) maps the audience (the Entra app the user logged into — the primary anchor) plus the presented roles to a { shell, persona_type }:

Entra audRoles→ shell→ persona
PortalAppIdIon.Portal.*bondipublic
CaPortalAppIdIon.User.Impersonation.*bondipublic
AlyaAppIdIon.DefenderWorkbench.*, Ion.DefenderWorkbench.Customer.*, Ion.AutomationWorkbench.*alyainternal

No matching rule → NoPersona.

4

Cross-check the requested shell

Owner: Signet

The X-Shell header must equal the shell derived from aud. A customer token cannot ask for an Alya capability set and vice-versa — mismatch → ShellMismatch.

5

Build permissions, MFE access, and scope additively

Owner: Signet

  • RolePermissionsMap.GetPermissionsForRoles(roles) unions every matching role’s permission bundle. Roles compose additively; unknown roles contribute nothing.
  • RoleMfeAccessMap.GetMfeAccessForRoles(roles) unions each role’s MFE bundle.
  • ScopeBuilder.Build(aud, tid, config) sets tenant scope (next section).

Example: customer Ion.Portal.ReadWrite yields ServiceRequest.ReadWrite, Incident.ReadWrite, Asset.ReadWrite, Action.ReadWrite, SPI.ReadWrite, Report.Read, GlobalConfiguration.Read plus RoE.Read / EM.Read / AssetMapping.Read — i.e. RoE/EM/AssetMapping stay read-only for customers even with a ReadWrite role (a domain rule encoded centrally, not in the MFE).

6

Sign RS512 and return

Owner: Signet

CapabilitiesTokenSigner.Sign stamps aud = mfe-apim, iat/nbf/exp, adds the typ: cap+jwt header, and signs RS512 with the Key Vault private key. The service returns { token_type, expires_in, token }.

Scope resolution

Scope answers “which tenants may this token touch”, and is deliberately narrow for customers and broad for Ontinue personas:

Persona (by aud)ScopeAllowsTenant behavior
Customer portal (PortalAppId){ unrestricted: false, customers: [{ tenants: ["<own tid>"] }] }only the caller’s own tenant
CA portal / impersonation (CaPortalAppId){ unrestricted: true }any tenant (advisor acts across customers)
Alya workbench (AlyaAppId){ unrestricted: true }any tenant (defender/coach)

Only the customer portal app (PortalAppId) is tenant-restricted; every other persona receives an unrestricted scope. This is the structural rule APIM relies on when it checks the tenant_id from the request path.

Role → permission / MFE-access maps (current)

The maps are static and additive. Current state (abbreviated — RolePermissionsMap / RoleMfeAccessMap are authoritative):

Entra rolemfe_accessNotable permissions
Ion.Portal.Read / .ReadWritespi_initiativesServiceRequest, Incident, Asset, Action, SPI, Report; RoE/EM read-only
Ion.User.Impersonation.Read / .ReadWritespi_initiativesadvisor: RoE/EM/AssetMapping ReadWrite, SR/Incident read-only
Ion.DefenderWorkbench.Customer.* (CA workbench)spi_initiativesServiceRequest, SPI, CustomerConfiguration
Ion.DefenderWorkbench.Portal.* (Defender)— (none yet)AllIncident, Investigation
Ion.AutomationWorkbench.* (Coach)— (none yet)AutomationWorkbench (TODO in source)

The Mfe enum currently defines a single value, spi_initiatives; additional MFEs are added to the enum and the access map as they are onboarded.

APIM: the MFE product policy

MFE BFFs register under the shared apim-product-mfe-{env} product. The product policy — not per-route wiring — performs capability validation on every inbound call:

The policy extracts the capability token from X-Capabilities, derives tenant_id from the sanctioned path convention and request_method from the verb, and calls /v1/validations using APIM’s managed identity (which is why the signet-int product is internal-only). Onboarding a new MFE BFF is therefore adding it to the product — no bespoke auth code per route.

Signet’s CapabilitiesValidator applies two coarse checks and fails closed:

  1. Tenant scope — scope.AllowsTenant(tenant_id). A tenant-restricted token used on a route with no tenant parameter is rejected; unrestricted passes.
  2. Coarse write gate — GET/HEAD/OPTIONS always pass; any other method (and any unknown method) requires at least one *.ReadWrite permission. This cheaply rejects read-only personas at the edge. Per-resource write rules remain the BFF’s job.

BFF contract — the backend half

APIM’s check is coarse and stateless. The BFF is the final authority and must not trust the X-Capabilities header blindly. ION ships this as a shared NuGet so every BFF enforces it identically.

Shared middleware

  • Package: Ontinue.Ion.Capabilities.Signet; register with services.AddCapabilitiesValidation(configuration) and apply via app.UseWhen(isMfeRoute, …) so only MFE routes are gated.
  • MfeCapabilitiesValidationMiddleware (header X-Capabilities):
    1. Reject if the header is missing/empty.
    2. VerifyAndReadAsync — verify RS512 signature, typ = cap+jwt, lifetime, and the kid-resolved public key.
    3. Bind to the Entra identity on the same request:
      • re-validate the Entra JWT (signature/issuer/expiry),
      • entra.aud == claims.entra_aud,
      • entra.oid == claims.sub,
      • claims.scope.AllowsTenant(entra.tid).
    4. Store CapabilityClaims in FunctionContext.Items["CapabilityClaims"] (SignetContractConstants.ContextItems.CAPABILITY_CLAIMS).

Binding is the critical step: it prevents a leaked or swapped capability token from being replayed by a different user or tenant — the token is only valid alongside the exact Entra token it was minted for.

Per-route responsibilities (R1–R6)

Per the Capabilities Service Design §7.1 contract, each BFF route must:

  1. R1 — confirm capability validation occurred (middleware present on the route).
  2. R2 — read verified claims from context, never re-parse the header itself.
  3. R3 — require the route’s specific permission(s) (e.g. Incident.ReadWrite to close an incident).
  4. R4 — apply shell-specific domain rules using the shell claim (e.g. Ontinue-owner vs customer-owner field edits).
  5. R5 — re-check tenant scope for the specific resource being mutated.
  6. R6 — strip response fields the persona may not see.

The division of labor is deliberate: Signet owns resolution, APIM owns coarse edge rejection, the BFF owns per-resource enforcement, and the domain service remains the final authority on valid state transitions.

How the frontend consumes capabilities

The capability token changes nothing about how MFEs branch — because they do not branch on roles. Instead:

  • Shell fetches the token at login (GET /v1/capabilities), stores it in the UserContext, and gates which MFEs mount on mfe_access. A user without spi_initiatives never loads the SPI remote.
  • MFE (FE) reads permissions from the shared context to show/hide UI affordances (e.g. render the “Close incident” button only if Incident.ReadWrite is present). This is a UX optimization, not the authorization decision of record.
  • Every MFE→BFF request carries both the Entra token (Authorization) and the capability token (X-Capabilities); APIM and the BFF make the real decision.

Because the contract is shell-aware, the same MFE build renders different actions under Alya vs Bondi with no shell-name checks in MFE code — the difference is entirely in the permissions, scope, and shell claims resolved by Signet.

Adoption status. The generated CapabilitiesTokenClaims contract type (mirroring the signet-ext OpenAPI schema) is already checked into each MFE under src/api/models/capabilities/ (e.g. alya-fe/app-shell, service-management-fe, incidents-management-fe, security-posture-improvement, customer-info-fe), so every app shares one token shape. Runtime wiring (fetching the token at login and gating mounts/UI on it) is rolling out per MFE; today MFEs also still gate remote consumption on role arrays (withAuthorizedRemoteMF(remote, [UserRole.…])). See implementation.

Related documentation

  • Identity and access · Architecture · Composition · Implementation
  • Pattern — Auth / AuthZ
  • Source references: Capabilities Service Design · Signet Capabilities and Validations — Test Use-Case · MFE - Authentication & Authorisation Patterns
  • Code: signet/app/src/Ontinue.Ion.Application.Signet/Services/CapabilitiesService.cs, .../CapabilitiesValidator.cs, signet/app/src/Ontinue.Ion.Core.Signet/Capabilities/, signet/app/src/Ontinue.Ion.Capabilities.Signet/, signet/api/signet-ext-specs.yaml, signet/api/signet-int-specs.yaml

On this page

  • Why a capabilities service
  • The trust chain
  • Token anatomy
  • The two endpoints
  • GET /v1/capabilities — shell login
  • POST /v1/validations — APIM edge validation
  • How a capability token is built
  • Scope resolution
  • Role → permission / MFE-access maps (current)
  • APIM: the MFE product policy
  • BFF contract — the backend half
  • Shared middleware
  • Per-route responsibilities (R1–R6)
  • How the frontend consumes capabilities
  • Related documentation
PreviousMicro-Frontends architecture
NextMicro-Frontends composition
Edit on GitHubSecurity