Engineering guide · ICAM
Application SSO Administration
On this page
Authority CompositionSSO ResourceBounded Federated ClaimsCredential And CSR LifecyclePublic KeysCertificate RequestsActivation And Runtime EnforcementPersistence And EvidenceFailure SemanticsOpenAPI, Swagger, And ValidationAtlas exposes an Okta-friendly application SSO administration surface under
/api/v1/apps/{appId}.
It covers SAML and OIDC metadata, application federated claims, sign-in-policy
binding, public signing-key inventory, PKCS#10 certificate requests, staged key
rotation, and activation evidence.
The compatibility baseline is the documented Okta Application Federated Claims API and Okta Application SSO Credential Key API. Atlas adds a signed aggregate, exact optimistic concurrency, bounded side-effect-free claim sources, non-exportable custody references, cryptographic CSR-to-certificate binding, maker-checker activation, and pre- and post-issuance generation checks.
See Authoritative Application Management for application lifecycle, assignment, transactional group push, and OAuth-grant facades. The application authority is the deployed aggregate; this SSO surface does not create a second client, policy, signing-key, or Universal Directory database.
Authority Composition
The signed application record owns:
-
public SAML or OIDC service-provider metadata;
-
bounded claim definitions and lifecycle state;
-
the identifier of the authoritative sign-in policy;
-
public certificates or public keys and approved custody references;
-
externally generated, signed CSRs and their publication state;
-
the SSO
runtimeGeneration; -
hash-linked mutation evidence; and
-
a P-384 state seal over the complete application aggregate.
The referenced authorities keep their original responsibilities:
| Authority | Responsibility |
|---|---|
Application authority |
Signed SSO contract, lifecycle, public credential inventory, evidence, and reference composition. |
Policy runtime |
Active sign-in-policy definition and evaluation. |
API-access authority |
Approved and enabled OIDC client, grant, refresh-token, and revocation state. |
OIDC authorization server |
ES384 token signing, authorization-server claims and policies, token lifetimes, and protocol validation. |
SAML IdP |
Actual private signing operation, active/staged/retiring key material, and assertion construction. |
Vault, KMS, or PKCS#11 provider |
Non-exportable private-key custody. |
Universal Directory |
Current user profile and group values consumed by bounded claims. |
Activation resolves every required reference and fails closed when an authority is missing, inactive, disabled, unapproved, or unavailable. For SAML, each staged, active, or retiring credential fingerprint must exist in the actual SAML signing authority. For OIDC, the referenced client must be enabled and independently approved. Each usable OIDC credential’s canonical public-key digest must also match a currently published key in the tenant OIDC signing authority.
SSO Resource
| Method and path | Purpose | Capability | Assurance |
|---|---|---|---|
|
Read the signed SSO contract. |
|
AAL2 |
|
Configure SAML or OIDC metadata while the application is inactive. |
|
fresh AAL2 |
|
Read runtime-safe metadata, active claims, public credentials, evidence head, state digest, and generation. |
|
AAL2 |
|
Verify and return the contiguous evidence chain and P-384 state seal. |
|
AAL2 |
|
Resolve policy, client, and credential readiness and independently activate the SSO contract. |
|
fresh phishing-resistant AAL3 |
|
Bind a sign-in-policy reference while the application is inactive. |
|
fresh AAL2 |
Every mutation requires:
-
If-Matchwith the current applicationETag; -
a nonempty
Idempotency-Key; and -
X-Atlas-Reason, which is committed into evidence.
Idempotency is bound to tenant, actor, and canonical request digest. An exact immediate replay returns the original committed version. Reusing a key for another request is rejected. If a later operation has superseded the replay result, Atlas returns a conflict and requires the caller to read current state.
Configure a SAML contract:
curl --fail-with-body \
--request PUT \
--url "$ATLAS/api/v1/apps/$APP_ID/sso" \
--header "Authorization: Bearer $AAL2_TOKEN" \
--header 'If-Match: "v1"' \
--header "Idempotency-Key: mission-saml-contract-20260726-01" \
--header "X-Atlas-Reason: Reviewed service-provider metadata" \
--header "Content-Type: application/json" \
--data '{
"protocol": "SAML2",
"policyId": "mission-sign-on",
"saml": {
"entityId": "https://mission.example.mil/saml/entity",
"acsUrls": ["https://mission.example.mil/saml/acs"],
"audience": "https://mission.example.mil/saml/entity",
"nameIdFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
"nameIdSource": "user.id",
"signedRequestsRequired": true,
"assertionEncrypted": true
}
}'
All redirect, logout, initiation, and ACS endpoints must be absolute HTTPS
URLs without user information or fragments.
The SSO protocol must match the application’s authoritative signOn.mode.
Changing SSO state on an active application is rejected: deactivate the
application, change the draft, rerun readiness, independently reactivate SSO,
and then activate the application.
Bounded Federated Claims
| Method and path | Purpose |
|---|---|
|
List or create claim definitions. |
|
Read or replace one claim. |
|
Mark the claim |
A claim has a protocol of SAML2, OIDC, or BOTH.
Its transform is NONE, LOWERCASE, or UPPERCASE.
Atlas deliberately does not expose an arbitrary expression language.
Allowed sources are:
| Source | Authoritative value |
|---|---|
|
Tenant-local Universal Directory subject. |
|
Current directory profile values. |
|
Current bounded directory attributes. |
|
Current membership-integrity-verified group identifiers. |
|
One explicitly named bounded directory attribute. |
Attribute source tokens accept only letters, numbers, underscore, hyphen, and
dot.
Names or sources referring to passwords, secrets, tokens, or private material
are rejected.
OIDC definitions also reject protected JWT names such as iss, sub, aud,
exp, jti, client_id, tenant_id, nonce, acr, and auth_time.
Neither an application claim nor an authorization-server claim may overwrite a
registered or previously resolved claim.
Create a required claim:
curl --fail-with-body \
--request POST \
--url "$ATLAS/api/v1/apps/$APP_ID/federated-claims" \
--header "Authorization: Bearer $AAL2_TOKEN" \
--header 'If-Match: "v2"' \
--header "Idempotency-Key: mission-claim-20260726-01" \
--header "X-Atlas-Reason: Reviewed mission attribute release" \
--header "Content-Type: application/json" \
--data '{
"name": "mission",
"source": "user.attributes.mission",
"protocol": "BOTH",
"transform": "LOWERCASE",
"required": true
}'
A missing required value fails issuance. An optional missing value is omitted. SAML assertions and OIDC tokens read current Universal Directory values; the application aggregate does not copy profile data.
Credential And CSR Lifecycle
Public Keys
| Method and path | Purpose |
|---|---|
|
List public credentials or stage a public signing key or certificate. |
|
Read one public credential. |
|
Independently activate a staged credential. |
|
Revoke a credential while retaining public material and evidence. |
Key mutations require fresh phishing-resistant AAL3.
Activation must be performed by an administrator other than the proposer.
RSA keys must be at least 3072 bits with a safe exponent; EC keys must use
P-384.
The credential must have signing use and a vault://, kms://, or
pkcs11:// custody reference.
Activating a replacement changes the previous active key to RETIRING for a
24-hour overlap and increments runtimeGeneration.
Atlas refuses to revoke the only usable active signing credential.
The overlap lets relying parties refresh metadata before the old verification
key disappears.
Certificate Requests
| Method and path | Purpose |
|---|---|
|
List or register one externally generated PKCS#10 CSR. |
|
Read or cancel a pending CSR. |
|
Validate that a public certificate contains the exact CSR key, then create a staged credential. |
Atlas never generates an exportable private key in the API process. Generate and sign the CSR inside the HSM, KMS, Vault, or PKCS#11 boundary, then register its public request:
curl --fail-with-body \
--request POST \
--url "$ATLAS/api/v1/apps/$APP_ID/credentials/csrs" \
--header "Authorization: Bearer $PHISHING_RESISTANT_AAL3_TOKEN" \
--header 'If-Match: "v3"' \
--header "Idempotency-Key: mission-csr-20260726-01" \
--header "X-Atlas-Reason: Register HSM-generated application CSR" \
--header "Content-Type: application/json" \
--data "{
\"csrPem\": $(jq -Rs . < mission.csr.pem),
\"privateKeyRef\": \"pkcs11://mission-hsm/saml-signing-v2\"
}"
Atlas verifies the PKCS#10 signature, records the public-key digest and algorithm, and stores the canonical CSR plus custody reference. Publication validates certificate time, signing usage, key strength, and exact public-key digest equality. A mismatched certificate is evidence failure, not a best-effort import.
privateKeyRef is a reference despite its compatibility-oriented field name.
Raw privateKey, privateKeyPem, client-secret, password, bearer-token,
access-token, and refresh-token keys are rejected at both the service and
PostgreSQL boundaries.
Activation And Runtime Enforcement
The intended sequence is:
-
create an inactive deployed application;
-
configure its SSO draft and bounded claims;
-
bind the active sign-in policy;
-
stage a public credential directly or publish a verified CSR;
-
have an independent phishing-resistant AAL3 administrator activate the key;
-
have an independent administrator activate the SSO contract;
-
activate the deployed application after full readiness; and
-
publish the resulting metadata to the relying party.
SSO activation requires an active, non-expired signing credential and current policy/client/key references. Application activation repeats SSO readiness rather than trusting an earlier check.
Immediately before SAML assertion or OIDC token signing, Atlas:
-
verifies the hash-linked evidence and P-384 state seal;
-
requires both application and SSO status to be
ACTIVE; -
captures the exact
runtimeGeneration; -
re-resolves active policy, OIDC client, or SAML key references;
-
reads bounded claim values from Universal Directory; and
-
rejects missing required values or protected-claim collisions.
After signing but before releasing the protocol response, Atlas reloads the signed aggregate and repeats the generation and authority checks. A concurrent deactivation, claim edit, policy change, client disablement, or credential rotation therefore discards the just-created response.
Legacy applications without an SSO subresource retain their existing protocol path. Once an SSO contract exists, invalid, inactive, unsealed, or unavailable state fails closed; Atlas does not silently fall back to ambient claims.
Persistence And Evidence
The SSO contract is embedded in the tenant-keyed authoritative application record:
service = application-authority:<tenant-id>
kind = application
id = <application-id>
Each mutation:
-
compares the caller’s exact expected version;
-
deep-clones the current aggregate;
-
increments the version exactly once;
-
appends one evidence event with actor, action, reason, request digest, idempotency digest, result version, predecessor, and state digest;
-
signs the complete state digest with ECDSA P-384; and
-
replaces the record with one PostgreSQL compare-and-swap.
Migration 071_harden_application_sso_records.sql installs database guards that
reject:
-
application or tenant identity changes;
-
version jumps;
-
evidence rewrites, truncation, or multi-event append;
-
physical application deletion;
-
secret-bearing SSO fields;
-
custody references outside the approved schemes; and
-
SSO records without a P-384 seal.
Reads verify the evidence chain and signature. Lists also verify every returned aggregate, preventing a tampered record from being skipped during OIDC client-to-application resolution.
Failure Semantics
| Response | Meaning |
|---|---|
|
Unsafe URI, claim source, protected claim name, weak key, malformed CSR, unsuitable certificate, or secret-bearing input. |
|
Capability, authentication freshness, phishing-resistant factor, independent approver, or active-runtime requirement failed. |
|
Tenant-local application, claim, key, CSR, or SSO contract was not found. |
|
Stale |
|
A mutation omitted |
|
A required durable authority is unavailable; activation and issuance fail closed. |
Successful mutations return the new application ETag.
Resource-creating key and CSR operations return 201.
Evidence-preserving claim retirement and CSR cancellation return 204.
An exact replay includes Idempotent-Replay: true.
OpenAPI, Swagger, And Validation
Every route and schema is in the gateway OpenAPI 3.1 contract and therefore in the gateway Swagger UI. The request schemas intentionally contain no raw private-key or client-secret property.
Run focused non-Docker validation:
Internal implementation checks are omitted from this public guide.
Run the real PostgreSQL proof after confirming Docker memory is available:
ATLAS_ICAM_POSTGRES_TMPFS=true \
./scripts/test/run-application-sso-docker-validation.sh
The Docker scenario proves signed create/configure/CSR/publish/key
maker-checker/SSO/application activation, restart recovery, exact generation
readiness, tenant isolation, reference-only persistence, version and
evidence-tamper rejection, custody and secret denial, physical-delete denial,
and final-state integrity.
The runner writes logs and a SHA-256 manifest under
artifacts/application-sso-validation/<run-id>/.
The accepted run is
artifacts/application-sso-validation/20260726T162430Z; its manifest verifies
the compose, PostgreSQL, and test logs.