Engineering guide · ICAM
Cross App Access
On this page
Authority CompositionResource ModelAPICreate And ActivateOAuth And ID-JAG RuntimeSAML RuntimeRevocation And Terminal OperationsFailure SemanticsValidationAtlas 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, andtokenType; -
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 |
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 |
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 |
|---|---|
|
Existing active token-exchange connection, source/agent client, target/resource
client, |
|
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, |
|
Current active source and target application SAML entity IDs and the target
application audience, with |
The application aggregate stores the reference, not the referenced grant or credential.
API
| Method and path | Purpose | Capability | Assurance |
|---|---|---|---|
|
List inbound and outbound connections. |
|
AAL1 |
|
Create an inactive outbound connection and immutable mapping set. |
|
fresh AAL2 |
|
Read one inbound or outbound connection. |
|
AAL1 |
|
Create a durable revocation operation and return |
|
fresh phishing-resistant AAL3 |
|
Record consent by the exact requesting application owner. |
|
fresh phishing-resistant AAL3 |
|
Record consent by the exact resource application owner. |
|
fresh phishing-resistant AAL3 |
|
Read executable reference mappings. |
|
AAL1 |
|
List or poll deterministic operations. |
|
AAL1 |
|
Independently activate or revoke after revalidating all references. |
|
fresh phishing-resistant AAL3 |
|
Cancel a still-pending operation. A terminal operation cannot be changed. |
|
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
SUCCEEDEDoperation 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 |
Stale |
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 |
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.