Engineering guide · ICAM
Universal Logout
On this page
ProtocolsStandards ProfileAuthorizationCreate A ConnectorStart LogoutRetry And RecoveryStorage And EvidenceLeaver IntegrationTrust And Incident Response IntegrationVerificationUniversal logout revokes Atlas sessions and asks every selected application to invalidate its subject sessions and tokens. It is used directly by operators and as the final revocation stage of an approved leaver workflow.
Protocols
Atlas supports two connector kinds:
global-token-revocation-
Sends an HTTPS JSON request containing a structured
sub_id. Atlas authenticates the request with a one-minute ES384 JWT bearer assertion whose issuer, client identifier, audience, issued time, expiry, and unique JWT ID are explicit. oidc-backchannel-
Sends a signed OIDC back-channel logout token as
application/x-www-form-urlencoded. The token uses explicittyp: logout+jwt, contains the back-channel logout event claim, a unique JWT ID, and an Atlas delivery identifier, and expires after one minute. The request also carries the Atlas bearer assertion so a target can authenticate both the caller and the logout event. Only the standard200and tolerated empty-body204responses count as OIDC logout success.
Applications fetch the current public verification key from:
GET /api/v1/universal-logout/jwks
The JWKS route is intentionally unauthenticated and returns only an ES384 public key. Connector configuration, subject identifiers, jobs, and evidence stay on the authenticated ICAM API.
Standards Profile
The OIDC connector implements OpenID Connect Back-Channel Logout 1.0 incorporating errata set 1. The global revocation connector tracks OAuth Global Token Revocation; because that document is still an Internet-Draft, its connector kind is explicitly versioned and must pass application acceptance testing before production enablement.
Authorization
All operator routes require bearer authentication, fresh AAL2 authentication within 15 minutes, and one of these capabilities:
| Capability | Routes | Purpose |
|---|---|---|
|
|
Inspect redacted configuration and verify delivery evidence. |
|
|
Create, disable, or version a connector. |
|
|
Authorize subject revocation and bounded retries. |
Tenant and actor values come from the verified request context. JSON cannot override them.
Create A Connector
curl --fail-with-body \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-X POST https://atlas.example/api/v1/icam/logout-connectors \
-d '{
"appId": "mission-planning",
"name": "Mission Planning",
"kind": "global-token-revocation",
"endpoint": "https://mission.example/oauth2/global-token-revocation",
"subjectFormat": "email",
"issuer": "https://atlas.example",
"clientId": "atlas-universal-logout",
"allowedCidrs": [],
"enabled": true,
"maxAttempts": 3,
"timeoutSeconds": 5
}'
An endpoint must use HTTPS and cannot contain user information, a query, or a fragment. Public destinations are allowed after DNS resolution. Private, loopback, link-local, documentation, benchmark, multicast, and reserved networks are denied unless an operator explicitly adds the target network to allowedCidrs. Redirects and environment proxy settings are ignored.
Read a single connector with GET /api/v1/icam/logout-connectors/{connectorId}. Updating it uses PUT on the same route and includes expectedVersion. Optimistic concurrency rejects stale updates. Connectors cannot be deleted; disable one to preserve historical evidence.
Subject formats are explicit:
-
emailrequiressubject.email; -
opaqueuses the Atlassubject.userId; -
iss_subrequires bothsubject.issuerandsubject.subject.
No application credential is stored in the connector. Atlas derives the stable logout JWT key from configured root signing material with HKDF domain separation, so the policy-catalog signing scalar is not reused across protocols. Applications trust the published logout key and validate the JWT issuer, audience, time, algorithm, key ID, and unique token ID.
Start Logout
curl --fail-with-body \
-H "Authorization: Bearer ${TOKEN}" \
-H "Idempotency-Key: incident-2026-0719-user-1042" \
-H "Content-Type: application/json" \
-X POST https://atlas.example/api/v1/icam/universal-logout \
-d '{
"subject": {
"userId": "user-1042",
"email": "operator@example.mil"
},
"includeAtlasSessions": true,
"connectorIds": [],
"reason": "Confirmed account compromise containment"
}'
An empty connectorIds list selects every enabled connector in the tenant. A non-empty list selects only those enabled connector IDs. The required Idempotency-Key is 16 through 200 characters. If idempotencyKey is also present in JSON, both values must match.
An exact replay by the same actor returns the original job and does not revoke or deliver again. Reusing the key for a different canonical request or actor returns 409 Conflict.
The 202 Accepted response contains a terminal succeeded, partial, or failed job for the work attempted during that call. Subject identifiers, reason, and idempotency key are redacted from API job responses; operators correlate through the tenant-bound subjectSha256, job ID, target results, and evidence head.
Retry And Recovery
A connection failure, 429, or 5xx is retryable. Other non-2xx responses are permanent for that attempt. Atlas never follows a redirect and never returns a downstream response body.
Use:
POST /api/v1/icam/universal-logout/\{jobId}/resume
Resume retries only targets marked retryable. Successful targets are never called twice. Local Atlas revocation is capped at three attempts; a connector is capped by maxAttempts, which cannot exceed five. Permanent responses and exhausted budgets become terminal, so repeated resume calls do not append unbounded no-op transitions. A connector that is disabled or version-changed after authorization fails closed rather than delivering under new configuration.
Inspect and verify evidence at:
GET /api/v1/icam/universal-logout/\{jobId}
GET /api/v1/icam/universal-logout/\{jobId}/events
The events response returns integrity: verified only after checking version order, previous-hash continuity, and each event hash.
Storage And Evidence
PostgreSQL owns connector, job, and event durability. Connector rows are tenant-scoped and versioned. Job rows keep only query metadata and tenant-bound SHA-256 digests in plaintext; the raw idempotency key is replaced by idempotency_key_sha256. The full request, subject, replay key, and target state are stored in runtime_ciphertext through Vault Transit key atlas-icam-universal-logout.
Every state transition and target attempt is atomically committed with a matching append-only event. Database triggers enforce immutable identity fields, exact version increments, new evidence heads, a matching event for every job version, and rejection of event update or delete.
Leaver Integration
The approved leaver sequence is:
-
disable the Universal Directory profile;
-
submit durable SCIM deprovisioning;
-
invalidate Atlas sessions and denylist known access and refresh token IDs;
-
create the universal-logout job for Atlas plus configured applications.
The leaver never reactivates a subject because an application is offline. A partial or failed logout becomes a rejected workflow step containing the job ID and evidence head. An operator remediates the connector and resumes the logout job.
Trust And Incident Response Integration
POST /api/trustscores/responses accepts action: "universal_logout" for a session with current trust evidence. Atlas creates an expiring proposal and an incident record; it does not revoke access at proposal time.
POST /api/trustscores/responses/{proposalId}/approve revalidates the evidence, fresh AAL2, operator scope, icam.logout.execute, and the shared revocation safety budget before it starts the same durable logout service used by leavers. A successful proposal returns logoutJobId and evidenceHash. Partial delivery keeps the proposal pending and returns 409; a later approval resumes the existing job without repeating successful targets. The durable job remains independently recoverable after the short-lived proposal expires.
Verification
Run memory-safe unit, gateway, migration, and contract tests:
Internal implementation checks are omitted from this public guide.
Compile the Docker-tagged test without starting containers:
Internal implementation checks are omitted from this public guide.
When at least 3 GiB is available and unrelated Docker jobs are complete, run:
make icam-workflow-docker-test
The bounded gate uses real PostgreSQL and Vault containers plus a real TLS test endpoint. It checks Transit ciphertext, process reconstruction, exact replay without duplicate delivery, tenant scoping, hash-chain recovery, and database rejection of evidence tampering. A prepared test is not claimed as executed until its evidence artifact exists under artifacts/icam-workflow-docker-validation/.