Engineering guide · ICAM
Authoritative Application Management
On this page
Authority And StorageApplication APIUser And Group AssignmentsTransactional Group PushOAuth Grants And Immediate RevocationJoiner, Mover, And Leaver IntegrationFailure SemanticsSwagger And TestsRelated OAuth BreadthAtlas exposes an Okta-friendly application management surface at
/api/v1/apps.
It deliberately separates three concerns that are often collapsed into one
mutable record:
-
application onboarding proposes, imports, tests, and packages a candidate;
-
the application authority owns deployed lifecycle and user or group access;
-
API access, federation, lifecycle, governance, and secret stores retain authority over their own clients, grants, trust, provisioning jobs, approvals, and credentials.
This prevents a compatibility facade from becoming a second OAuth, federation, or provisioning database.
For application-level SAML and OIDC metadata, bounded federated claims, sign-in-policy binding, public credential and CSR lifecycle, and runtime generation enforcement, see Application SSO Administration.
The compatibility baseline is the documented Okta Application Users API, User OAuth token API, and application-management behavior. Atlas adds tenant-isolated storage keys, inactive-first creation, optimistic concurrency, independent AAL3 activation, exact authority resolution, soft revocation, and hash-linked evidence.
Authority And Storage
The deployed aggregate is stored by Atlas service in the shared PostgreSQL-backed platform record store using:
service = application-authority:<tenant-id>
kind = application | assignment
The authenticated tenant determines the storage partition.
A caller-supplied tenant field is ignored.
Cross-tenant identifiers return 404.
An application record stores public protocol configuration and identifiers such
as oauthClientId, federationProviderId, provisioningConnectorId,
directoryAgentPoolId, directoryIdentitySourceId, accessPolicyId, and
sourceDraftId.
It does not store a client secret, private key, password, session, refresh
token, or bearer access token.
Certificate material must be an approved vault://, kms://, or pkcs11://
reference.
OIDC redirect, logout, and initiation endpoints must be absolute HTTPS URLs.
Every aggregate has a monotonically increasing version.
Each mutation appends an evidence event containing the actor, action, reason,
previous evidence hash, and new state digest.
The state and evidence trail are written in the same compare-and-swap operation;
an audit write cannot be detached from the state it describes.
Application API
| Operation | Purpose | Capability | Assurance |
|---|---|---|---|
|
List or filter deployed applications in the authenticated tenant. |
|
AAL1 |
|
Create an |
|
fresh AAL2 |
|
Read one application and its evidence trail. |
|
AAL1 |
|
Replace inactive public configuration using |
|
fresh AAL2 |
|
Resolve readiness dependencies and activate. |
|
fresh AAL3, independent actor |
|
Make the application unavailable without deleting its evidence. |
|
fresh AAL2 |
Create an OIDC application:
curl --fail-with-body \
-X POST https://id.atlas.example/api/v1/apps \
-H "Authorization: Bearer ${ATLAS_OPERATOR_TOKEN}" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: mission-portal-production-0001" \
--data '{
"label": "Mission Portal",
"name": "mission-portal",
"ownerUserId": "00u-mission-owner",
"visibility": "catalog",
"sourceDraftId": "draft-reviewed-01",
"directoryAgentPoolId": "agp-...",
"directoryIdentitySourceId": "ids-...",
"accessPolicyId": "policy-high-assurance",
"signOn": {
"mode": "oidc",
"oauthClientId": "client-approved-01",
"oidc": {
"initiateLoginUri": "https://mission.example/login",
"redirectUris": ["https://mission.example/oauth/callback"],
"logoutUris": ["https://mission.example/logout/callback"]
}
}
}'
Creation returns an ETag, for example "v1".
Use it for activation:
curl --fail-with-body \
-X POST https://id.atlas.example/api/v1/apps/${APP_ID}/lifecycle/activate \
-H "Authorization: Bearer ${ATLAS_INDEPENDENT_AAL3_TOKEN}" \
-H 'If-Match: "v1"' \
-H "Content-Type: application/json" \
--data '{"reason":"independent readiness and evidence review completed"}'
Activation fails closed unless:
-
the actor is neither the application owner nor creator;
-
the actor has a fresh AAL3 session and
applications.activate; -
a referenced OAuth client exists in the same tenant and is enabled and approved;
-
a referenced onboarding draft exists, is readiness-approved, and has test evidence;
-
directory bindings, when configured, are configured as a pair: one signed
ACTIVEAD agent pool and one signedACTIVEAD identity source with a direct ready connector and imported generation; -
every required authority is available.
Configuration changes to an active application are rejected.
Deactivate, update with the new ETag, rerun readiness, and activate through a
new independent decision.
User And Group Assignments
Direct user and group assignments use separate stable paths:
| Operation | Purpose |
|---|---|
|
List or create direct user assignments. |
|
Replace or revoke one direct assignment. |
|
List or create group assignments. |
|
Replace or revoke one group assignment. |
Assignment mutations require applications.assign and fresh AAL2.
Updates and revocations use the assignment ETag.
DELETE is evidence-preserving soft revocation and returns 204; the record is
retained as REVOKED for investigations, leaver proof, and certification.
The optional profile is bounded to 32 string attributes.
Attribute names containing password, secret, token, or privateKey are
rejected.
Application credentials belong in the lifecycle connector’s approved secret
store, never an assignment profile.
An assignment has a scope of USER or GROUP.
Group-derived effective access remains a directory and authorization
calculation.
When the application references a readiness-validated group-push connector,
the group assignment also contains a durable materialization intent.
Atlas does not copy the group’s member list into that authority record.
Transactional Group Push
The desired assignment and its group-push intent are one compare-and-swap
aggregate.
Creating or updating a group assignment records PUSH; revocation records
UNLINK.
The intent contains a mapping identifier, connector, source assignment version,
stable idempotency key, status, lease, attempt count, lifecycle job reference,
membership digest, and evidence hash.
There is no state in which the group assignment committed but its required
materialization request was lost.
Assignment create, replace, and revoke operations attempt reconciliation
immediately after that commit.
They return 202 Accepted plus the mapping Location and current assignment
body when a dependent authority or target is unavailable; the durable intent
then remains visible and retryable through the reconcile operation.
| Operation | Purpose |
|---|---|
|
List mappings, optionally filtered by materialization |
|
Read one assignment and embedded mapping state. |
|
Lease the current intent with |
Reads require applications.group-push.read.
Reconciliation requires applications.group-push.manage, fresh AAL2, and the
current assignment ETag.
Only one unexpired lease can own an attempt.
Failures clear the lease and store an error code plus error digest, not a raw
connector response.
For PUSH, reconciliation reads the current Universal Directory group and
requires every member to have an active application user assignment with a
target scimUserId or externalId.
It refuses a partial projection.
The SCIM lifecycle job replaces the complete target membership rather than
performing an additive merge, so mover and leaver removals converge.
The resulting member set is represented in authority state only by a SHA-256
digest.
UNLINK removes Atlas' mapping authority without falsely claiming that the
external target group was deleted.
Because unlink changes Atlas authority state only, it can complete even while
the lifecycle connector or Universal Directory is unavailable.
Application activation now verifies that a referenced provisioning connector
is enabled, readiness-validated, advertises group_push, and is bound to the
same application.
OAuth Grants And Immediate Revocation
OIDC applications expose their API-access-owned grants through:
| Operation | Purpose |
|---|---|
|
List only grants whose |
|
Read one bound grant. |
|
Revoke the durable grant using evidence-hash compare-and-swap. |
The facade never copies grant state.
Atlas service remains the single grant authority.
Atlas stores an opaque tokenRef and decision metadata, not the bearer token.
New Atlas access tokens contain the durable grant_id.
Access-token verification resolves that grant on every use.
A grant that is revoked, denied, missing, expired, or unreachable makes the
otherwise correctly signed JWT invalid immediately.
This closes the common gap in which an administrative revoke changes inventory
but a self-contained access token remains usable until expiry.
Application grant reads require applications.grants.read.
Revocation requires applications.grants.revoke, fresh AAL2, a reason, and the
current evidence hash.
Joiner, Mover, And Leaver Integration
The application authority is the durable target for assignment intent:
-
a joiner or approved access request creates a user assignment;
-
a mover updates or revokes direct assignments and relies on authoritative group membership for group-derived access;
-
a leaver revokes direct assignments while lifecycle connectors deprovision downstream accounts, API access revokes grants and clients as applicable, and Universal Logout terminates sessions.
Those downstream actions remain durable workflow steps with their own evidence. An application assignment is not falsely presented as proof that an external SaaS account was deprovisioned.
Failure Semantics
| Status | Meaning |
|---|---|
|
Invalid protocol, insecure URI, inline secret, unbounded profile, or missing reason. |
|
Capability, fresh assurance, operator role, or independent-actor requirement failed. |
|
The resource is absent in the authenticated tenant, including cross-tenant identifier probes. |
|
Stale version, concurrent change, active configuration edit, readiness failure, or replay-key mismatch. |
|
|
|
PostgreSQL or a required authority is unavailable. Activation and grant verification fail closed. |
Swagger And Tests
The gateway Swagger UI documents the application, assignment, group-push,
lifecycle, and grant operations, their exact schemas, capabilities, AAL requirements,
Idempotency-Key, and If-Match.
Atlas service covers:
-
independent AAL3 activation and stale-version rejection;
-
tenant isolation and exact idempotent replay;
-
user and group assignment lifecycle;
-
evidence-preserving revocation;
-
concurrent assignment compare-and-swap;
-
atomic group-push intent, exclusive leases, completion, and evidence;
-
insecure redirect and inline-secret rejection.
Atlas service covers tenant-scoped grant inventory and atomic revocation. Atlas service covers signed token validation; the gateway binds that validation to durable grant status.
The integration-tagged Atlas service uses real PostgreSQL, reconstructs the service after a restart, verifies active application and revoked-assignment recovery, proves cross-tenant isolation, and inspects the stored JSON for reference-only credential handling. Run it when Docker capacity is available:
Internal implementation checks are omitted from this public guide.
Related OAuth Breadth
User-centric grant and refresh-token management, refresh rotation and replay detection, RFC 8693 exchange, ID-JAG, and brokered Atlas resource access tokens are documented at OAuth Grants, Refresh Tokens, And Token Exchange. External SaaS acceptance and provider-issued token revocation remain deployment-owned.