Protocol and deployment notes · Deployment
Inbound Global Token Revocation
On this page
Production prerequisitesEnable a providerSender contractResponse and convergence semanticsReauthentication behaviorData custody and audit boundaryRepeatable validationAtlas can receive a signed, server-to-server Global Token Revocation request from an explicitly enabled OIDC or SAML 2.0 identity provider. One accepted request terminates the linked subject's Atlas sessions and their access and session-refresh JTIs, revokes every Atlas OAuth refresh-token family for that subject, invokes configured application logout connectors, and prevents a new federated session until the source identity provider supplies authentication evidence newer than the request.
This is an interoperability profile of the active IETF Internet-Draft, not a claim that the draft is a published RFC or that a particular Okta or Ping deployment has been certified against Atlas.
Production prerequisites
- Apply Atlas identity migration 200. The gateway refuses to enable the feature without the durable acceptance, reauthentication, and work tables.
- Configure the normal PostgreSQL identity authority and encrypted Redis session projection. Production does not fall back to an in-memory revocation store.
- Set
ATLAS_OIDC_ISSUER_BASE_URLto the externally visible HTTPS Atlas origin. The JWTaudmust equal the resulting endpoint byte-for-byte. - Configure and enable the OIDC or SAML 2.0 provider through the standard federation-provider API. Its current SSO verification keys are reused; Atlas does not accept a request-carried key.
- Establish an active, signed Atlas account link for the exact external issuer and subject. Email lookup and implicit local-user matching are not accepted.
- Keep the Atlas OAuth refresh-family authority available. Configured application logout connectors are invoked through the existing Universal Logout authority.
An enabled provider makes gateway startup fail closed if the durable inbound revocation authority cannot initialize. A provider with the feature disabled does not make an otherwise healthy deployment depend on it.
Enable a provider
Create or update the provider at
/api/v1/federation/providers/{providerId} with the ordinary authenticated
Atlas operator session, mutation headers, and full provider representation.
The relevant field is:
{
"globalTokenRevocation": {
"enabled": true,
"callerId": "atlas-aio-client",
"subjectFormat": "iss_sub"
}
}
For OIDC, an omitted callerId is normalized to the provider's configured
clientId. For SAML 2.0, set it to the exact application-instance identifier
that the sender places in the JWT sub. The value must be unique for the
matching issuer. WS-Federation and direct SAML 1.1 providers cannot enable this
profile.
Run the provider's standard validate transition, review its
global_token_revocation check, and then use the standard enable transition.
The redacted provider response includes the effective configuration. Disabling
or retiring the provider immediately removes its sending authority.
Sender contract
Discover the tenant endpoint from either tenant OpenID Provider metadata URL:
GET /oauth2/{tenantId}/.well-known/openid-configuration
GET /.well-known/openid-configuration/oauth2/{tenantId}
The metadata includes:
{
"global_token_revocation_endpoint": "https://atlas.example.mil/oauth2/00000000-0000-0000-0000-000000000000/v1/global-token-revocation",
"global_token_revocation_endpoint_auth_methods_supported": ["private_key_jwt"]
}
Send an HTTPS request with Content-Type: application/json and the compact
signed JWT as a Bearer credential:
POST /oauth2/{tenantId}/v1/global-token-revocation HTTP/1.1
Host: atlas.example.mil
Content-Type: application/json
Authorization: Bearer <signed-jwt>
{"sub_id":{"format":"iss_sub","iss":"https://idp.example.mil","sub":"pairwise-subject"}}
The JWT contract is deliberately narrow:
| Field | Required Atlas value |
|---|---|
typ |
global-token-revocation+jwt |
alg |
RS256, ES256, or ES384; no symmetric or none algorithm |
kid |
Current SSO signing-key identifier. It may be omitted only when exactly one current compatible provider key exists. |
iss |
Exact configured provider issuer/entity ID |
sub |
Exact configured callerId, not the affected user |
aud |
Exact tenant revocation endpoint |
jti |
Unique non-empty identifier; reuse is rejected even after restart |
iat, nbf, exp |
Current bounded times; total lifetime cannot exceed five minutes |
The body must contain exactly one RFC 9493 iss_sub subject identifier. Atlas
rejects email, opaque, unknown, duplicate, or additional top-level fields.
Response and convergence semantics
204 No Content means Atlas atomically accepted the request, installed the
reauthentication barrier, and committed restart-safe revocation work. It does
not mean every downstream application has already responded. The local worker
runs immediately and retries bounded failures from the durable outbox after a
gateway restart.
Other responses are non-enumerating where practical:
400: malformed content type, JSON, tenant ID, JWT structure, or subject format.401: missing/invalid/expired/replayed signed JWT.403: configured provider, caller, key, or account-link authority does not permit the operation.404: no current signed account link resolves the verified issuer/subject.422: Atlas could not atomically start the operation.503: a required durable, key, session, token, or application authority is unavailable.
The sender should treat a transport failure or 5xx as retryable using the
same jti. If Atlas previously accepted it, the retry is rejected as a replay
rather than applying a second effect. A sender must never mint a new jti in a
tight loop without first reconciling the prior attempt.
Reauthentication behavior
An accepted request advances a barrier for the exact tenant, provider,
account-link generation, and local user. Atlas checks that barrier before and
after federated session issuance. A stale callback is redirected once to the
same source IdP with OIDC prompt=login and max_age=0, or SAML 2.0
ForceAuthn=true. If the forced callback still lacks authentication evidence
newer than the barrier, Atlas denies it instead of looping or silently creating
a session.
Local account-link changes do not weaken the barrier: acceptance is tied to the current signed link generation, and callbacks must resolve the same generation.
Data custody and audit boundary
Atlas does not persist the raw JWT, external subject, canonical issuer, email, access token, refresh token, or application credential in the revocation tables. It retains HMAC references, the current signed account-link digest, times, a sealed evidence digest, retry state, and aggregate convergence counts. Accepted request evidence is append-only; reauthentication barriers cannot be deleted; and work receipts reject rollback and physical deletion.
The sender's assertion can cause credential removal and fresh authentication. It cannot create a user, link an account, increase assurance or trust, add a group or role, mint a credential, or grant access.
Repeatable validation
Run the production-path proof with disposable PostgreSQL and Redis containers:
scripts/test/run-global-token-revocation-docker-validation.sh
The runner retains a source-bound manifest and independently verified summary
under artifacts/global-token-revocation-docker-validation/. It covers signed
request validation, exact signed account-link resolution, atomic acceptance,
database restart and lease recovery, replay and tamper denial, real Atlas
session/JTI convergence, a real persistent OAuth refresh family, the
application logout boundary, and source-IdP reauthentication.
The focused package checks are:
Internal implementation checks are omitted from this public guide.