Engineering guide · ICAM

Cross App Access

Status: implemented and unit/race tested; the base authority was tmpfs PostgreSQL Docker validated on 2026-07-26, while the July SAML-requester extension awaits the next memory-safe Docker slotReviewed: 2026-07-26Audience: application developers, federation engineers, OAuth developers, security architects, platform operators
On this pageAuthority CompositionResource ModelAPICreate And ActivateOAuth And ID-JAG RuntimeSAML RuntimeRevocation And Terminal OperationsFailure SemanticsValidation

Atlas implements the Okta-friendly Cross App Access collection at /api/v1/apps/{appId}/cwo/connections. The compatibility baseline is the official Okta Cross App Access Connections API. An application path lists both inbound and outbound connections and accepts the familiar requesting-application, resource-application, and lifecycle fields.

Atlas adds controls that are intentionally deeper than a connection CRUD surface:

  • exact signed source and resource application bindings;

  • OAuth/ID-JAG and SAML-requester mappings to OIDC or SAML resources that reference their existing authorities;

  • explicit source/resource protocol, connectionType, and tokenType;

  • separate fresh phishing-resistant AAL3 consent from both application owners;

  • an independent AAL3 maker-checker executor;

  • deterministic, bounded, pollable, and cancellable operation resources;

  • terminal operation tombstones that cannot reopen;

  • pre- and post-generation runtime revalidation;

  • generation-bound revocation;

  • application-level CAS, request-bound idempotency, P-384 seals, and append-only hash-linked evidence; and

  • PostgreSQL secret denial and tamper guards.

No Cross App record contains a client secret, password, bearer credential, private key, subject token, actor token, ID-JAG, or copied OAuth grant.

Authority Composition

Authority Responsibility

Signed application authority

Connection, mapping, dual consent, deterministic operation journal, generation, lifecycle, and evidence.

API-access token-exchange authority

The existing RFC 8693 grant: distinct source, subject, and resource clients, exact audience and scopes, ID-JAG lifetime, one-time JTI, delegation/resource references, and revocation.

OIDC authorization server

Real ES384 id-jag+jwt and downstream at+jwt generation. It asks the application authority to revalidate Cross App trust before and after each generation step.

SAML application SSO authority and IdP

Signed source and resource SAML contracts, current entity IDs and audience, public signing-key inventory, and actual assertion generation.

External provider adapter

Provider-specific consent and provisioning. A configured adapter name without an installed implementation reaches terminal FAILED with unsupported; it never produces a synthetic ACTIVE connection.

A Cross App connection only composes these authorities. It does not become another OAuth grant database or another signing-key store. Activation and every runtime use re-read the original authorities, so revocation, client disablement, application deactivation, audience drift, scope drift, SAML metadata change, resource loss, or evidence failure closes the path immediately.

Resource Model

The connection is owned by the requesting application’s signed aggregate:

{
  "id": "5e716a3fcf3f25dba16312da",
  "requestingAppInstanceId": "mission-assistant",
  "resourceAppInstanceId": "mission-records",
  "requestingClientId": "mission-assistant-client",
  "resourceClientId": "mission-records-client",
  "status": "INACTIVE",
  "generation": 1,
  "mappings": [
    {
      "id": "33fa06bb721631866f9cc46d",
      "protocol": "OAUTH2_ID_JAG",
      "resourceProtocol": "OIDC",
      "connectionType": "IDENTITY_ASSERTION_APP_INSTANCE",
      "tokenType": "urn:ietf:params:oauth:token-type:id-jag",
      "status": "ACTIVE",
      "tokenExchangeConnectionId": "exchange-7",
      "sourceClientId": "mission-assistant-client",
      "targetClientId": "mission-records-client",
      "audience": "https://records.example.mil",
      "scopes": ["records.read"]
    }
  ],
  "requestingConsent": {"side": "REQUESTING", "status": "PENDING"},
  "resourceConsent": {"side": "RESOURCE", "status": "PENDING"}
}

Collections are bounded to 64 connections, 16 mappings per connection, and 256 durable operations per requesting application. Mappings accept only these executable protocol forms:

Source and resource Required exact references

OAUTH2_ID_JAG → OIDC

Existing active token-exchange connection, source/agent client, target/resource client, IDENTITY_ASSERTION_APP_INSTANCE, ID-JAG token type, resource audience, and a nonempty bounded scope set.

SAML2 → OIDC

Current active signed source SAML entity ID, the source application’s governed OAuth bridge client, existing active token-exchange connection, current active resource OIDC client, IDENTITY_ASSERTION_APP_INSTANCE, ID-JAG token type, exact audience, and bounded scopes.

SAML2 → SAML2

Current active source and target application SAML entity IDs and the target application audience, with IDENTITY_ASSERTION_APP_INSTANCE and the SAML 2.0 token type.

The application aggregate stores the reference, not the referenced grant or credential.

API

Method and path Purpose Capability Assurance

GET /api/v1/apps/{appId}/cwo/connections

List inbound and outbound connections. status=ACTIVE or status=INACTIVE may narrow the result.

applications.cross_app.read

AAL1

POST /api/v1/apps/{appId}/cwo/connections

Create an inactive outbound connection and immutable mapping set.

applications.cross_app.manage

fresh AAL2

GET /api/v1/apps/{appId}/cwo/connections/{connectionId}

Read one inbound or outbound connection.

applications.cross_app.read

AAL1

DELETE /api/v1/apps/{appId}/cwo/connections/{connectionId}

Create a durable revocation operation and return 202 Accepted plus Location.

applications.cross_app.manage

fresh phishing-resistant AAL3

POST …​/consents/requesting

Record consent by the exact requesting application owner.

applications.cross_app.consent

fresh phishing-resistant AAL3

POST …​/consents/resource

Record consent by the exact resource application owner.

applications.cross_app.consent

fresh phishing-resistant AAL3

GET …​/mappings[/{mappingId}]

Read executable reference mappings.

applications.cross_app.read

AAL1

GET …​/operations[/{operationId}]

List or poll deterministic operations.

applications.cross_app.read

AAL1

POST …​/operations/{operationId}/lifecycle/execute

Independently activate or revoke after revalidating all references.

applications.cross_app.activate

fresh phishing-resistant AAL3

POST …​/operations/{operationId}/lifecycle/cancel

Cancel a still-pending operation. A terminal operation cannot be changed.

applications.cross_app.activate

fresh phishing-resistant AAL3

Every mutation requires the requesting application’s current If-Match version and a nonempty Idempotency-Key. The reason is carried in the JSON body, except DELETE, where it is the reason query parameter. The raw consent reason is not copied into consent state; consent contains its SHA-256 evidence binding.

An exact immediate replay returns the committed result with Idempotency-Replayed: true. Using a key for different input, actor, or tenant fails. A replay whose result has since been superseded returns conflict and requires a current read.

Create And Activate

Create an OAuth/ID-JAG mapping:

curl --fail-with-body \
  --request POST \
  --url "$ATLAS/api/v1/apps/$REQUESTING_APP/cwo/connections" \
  --header "Authorization: Bearer $AAL2_TOKEN" \
  --header 'If-Match: "v6"' \
  --header "Idempotency-Key: caa-create-20260726-01" \
  --header "Content-Type: application/json" \
  --data "{
    \"reason\": \"Reviewed least-privilege resource access\",
    \"connection\": {
      \"resourceAppInstanceId\": \"$RESOURCE_APP\",
      \"requestingClientId\": \"$SOURCE_CLIENT\",
      \"resourceClientId\": \"$RESOURCE_CLIENT\",
      \"mappings\": [{
        \"protocol\": \"OAUTH2_ID_JAG\",
        \"resourceProtocol\": \"OIDC\",
        \"connectionType\": \"IDENTITY_ASSERTION_APP_INSTANCE\",
        \"tokenType\": \"urn:ietf:params:oauth:token-type:id-jag\",
        \"tokenExchangeConnectionId\": \"$TOKEN_EXCHANGE_CONNECTION\",
        \"sourceClientId\": \"$SOURCE_CLIENT\",
        \"targetClientId\": \"$RESOURCE_CLIENT\",
        \"audience\": \"https://records.example.mil\",
        \"scopes\": [\"records.read\"]
      }]
    }
  }"

The requesting owner and resource owner then consent using distinct authenticated sessions:

curl --fail-with-body --request POST \
  --url "$ATLAS/api/v1/apps/$REQUESTING_APP/cwo/connections/$CONNECTION/consents/requesting" \
  --header "Authorization: Bearer $REQUESTING_OWNER_AAL3" \
  --header 'If-Match: "v7"' \
  --header "Idempotency-Key: caa-source-consent-20260726-01" \
  --header "Content-Type: application/json" \
  --data '{"reason":"Requesting owner approves the exact audience and scopes"}'

curl --fail-with-body --request POST \
  --url "$ATLAS/api/v1/apps/$REQUESTING_APP/cwo/connections/$CONNECTION/consents/resource" \
  --header "Authorization: Bearer $RESOURCE_OWNER_AAL3" \
  --header 'If-Match: "v8"' \
  --header "Idempotency-Key: caa-resource-consent-20260726-01" \
  --header "Content-Type: application/json" \
  --data '{"reason":"Resource owner approves the exact audience and scopes"}'

The second consent creates one deterministic ACTIVATE operation. Its ID and deterministicKey bind connection, operation type, and next generation. An independent security actor—different from the creator and both consent actors—executes it:

curl --fail-with-body --request POST \
  --url "$ATLAS/api/v1/apps/$REQUESTING_APP/cwo/connections/$CONNECTION/operations/$OPERATION/lifecycle/execute" \
  --header "Authorization: Bearer $INDEPENDENT_AAL3" \
  --header 'If-Match: "v9"' \
  --header "Idempotency-Key: caa-activate-20260726-01" \
  --header "Content-Type: application/json" \
  --data '{"reason":"Independent trust and authority review completed"}'

The executor atomically reaches SUCCEEDED and ACTIVE, or terminal FAILED with an evidence-hashed error. No operation reports success before the signed application update commits. RUNNING is an internal transition; callers observe durable PENDING or a terminal tombstone.

OAuth And ID-JAG Runtime

For both human-to-agent and nested agent-to-agent RFC 8693 exchange, Atlas requires exactly one active Cross App mapping for:

  • the token-exchange connection ID;

  • the source/agent client;

  • the target/resource client;

  • the resource audience; and

  • the normalized exact scope set.

The OIDC server revalidates this contract before ID-JAG signing and again after signing and one-time JTI registration but before release. During ID-JAG consumption it revalidates after the one-time consume and again after access-token signing but before release. The referenced token-exchange authority independently repeats its client, delegation, resource, audience, scope, evidence, and revocation checks.

A custom SAML requesting application uses the same OIDC issuance choke point through its application-owned OAuth bridge. Atlas first tries the normal OIDC-to-OIDC mapping, then the SAML-to-OIDC mapping; either path must identify one and only one active connection. The SAML source entity, bridge client, target OIDC client, exchange ID, ID-JAG token type, audience, scope set, and trust generation must all match. Atlas does not accept an unsigned entity ID or turn a raw browser assertion into an ambient OAuth grant.

A failed post-generation check strands the unreturned single-use artifact; it does not return a stale token. Atlas never converts a Cross App connection into an ambient wildcard grant.

See OAuth Grants, Refresh, And Token Exchange and AI Workload Principals And Delegation for the underlying RFC 8693 and ID-JAG wire examples.

SAML Runtime

A SAML-resource launch may supply the requesting application context as requestingAppId or X-Atlas-Requesting-App-Id. When present, Atlas requires exactly one active mapping whose source entity ID, target entity ID, and target audience equal the current signed SAML application contracts, whose resource protocol is SAML2, and whose token type is urn:ietf:params:oauth:token-type:saml2.

The SAML IdP checks the Cross App contract before assertion generation and again after signing but before release. The assertion includes bounded audit attributes:

  • atlasCrossAppConnectionId;

  • atlasRequestingAppId; and

  • atlasCrossAppGeneration.

Those attributes identify the signed trust epoch; they contain no secret or bearer credential. Normal non-Cross-App SAML launches remain unchanged.

Revocation And Terminal Operations

DELETE creates a deterministic REVOKE operation at the next generation. An independent executor commits:

  • connection status REVOKED;

  • incremented generation;

  • both consent states REVOKED;

  • actor and timestamp;

  • a SHA-256-bound reason; and

  • a terminal SUCCEEDED operation tombstone.

Runtime checks reject the connection immediately. The PostgreSQL guard forbids removing a connection or operation, decreasing a generation, changing a revoked connection, changing operation identity, or reopening any SUCCEEDED, FAILED, or CANCELLED tombstone.

Failure Semantics

Condition Result

Wrong tenant, application, client, entity ID, audience, scope, or protocol

Forbidden or evidence failure; no protocol artifact is released.

Missing, inactive, disabled, revoked, or unavailable referenced authority

Fail closed; activation reaches terminal FAILED, runtime returns a protocol error.

Stale If-Match

Conflict; no state changes.

Missing or reused-for-different-input idempotency key

Invalid request or conflict.

Stale, non-phishing-resistant, or below-AAL3 consent/execution

Step-up required.

Creator or either consent actor attempts activation

Forbidden by maker-checker isolation.

External provider adapter is named but not installed

Terminal FAILED, errorCode=unsupported; connection remains INACTIVE.

Operation is already terminal

Conflict; terminal tombstone cannot reopen.

Validation

Run the non-Docker gates:

Internal implementation checks are omitted from this public guide.

The serialized tmpfs PostgreSQL acceptance runner is:

scripts/test/run-cross-app-access-docker-validation.sh

The tmpfs PostgreSQL scenario validates restart persistence, SQL tamper rejection, dual consent, a successful terminal activation tombstone, exact runtime mapping, tenant isolation, signed recovery, and reference-only durable storage. Focused authority tests separately validate revocation, cancellation, concurrent-executor CAS, assurance failures, seal removal, and explicit unsupported-adapter failure.

The verified acceptance evidence for this implementation is artifacts/cross-app-access-validation/20260727T012518Z. Its manifest.sha256 verifies compose-up.log, postgres.log, and test.log; manifest-verify.log records all three checks as OK.