Engineering guide · ICAM
Federation
On this page
Provider LifecycleInbound WS-Federation metadataInbound WS-Federation authentication requirementsInbound WS-Federation cleanupBounded WS-Trust issuance and managed token productionAPISocial OIDC ProvidersRequired Negative TestsAtlas supports SAML and OpenID Connect federation, provider discovery and metadata, JIT provisioning, assurance mapping, signing-key readiness, logout integration, and fail-closed validation.
Atlas can also act as a tenant-scoped OpenID Provider. See OIDC Authorization Server for client integration, discovery, governed grants, PKCE, token validation, and signing-key rollover.
Verified inbound principals are governed by a separate signed account-link authority before Atlas returns a local session. See Federation Account Linking for collision quarantine, user and administrator approval, keyed subject privacy, JIT materialization, link APIs, and session/token invalidation.
Atlas also applies ordered first-match policy before starting inbound OIDC or SAML authentication. See Identity Provider Routing for conditions, explicit fallback, one-time decision binding, API contracts, evidence, and failure behavior.
Provider Lifecycle
-
Stage a redacted provider configuration.
-
Preview metadata through the provider-specific managed action or exchange configuration through an approved channel.
-
Validate issuer, entity ID, endpoints, algorithms, audience, callback allowlist, certificate chain, and clock policy.
-
Test positive and negative authentication cases.
-
Approve and enable the provider at AAL2.
-
Monitor metadata and signing-key expiry.
-
Stage rollover with overlap and rollback.
-
Disable the provider without deleting evidence.
Provider secrets and private keys are stored as Vault/HSM references. API responses contain redacted configuration and evidence hashes.
Inbound WS-Federation metadata
For a ws-fed provider, create a draft with metadataUrl plus the Atlas-local
wsFed.replyUrl and wsFed.audience. An optional tlsCaCertPath adds an
operator-managed private CA without disabling TLS verification.
POST /api/v1/federation/providers/{providerId}/metadata-preview is read-only.
It returns the exact document digest, OASIS realm, HTTPS passive endpoints,
token types, redacted certificate fingerprints, XML-signature status, rollover
differences, and the current provider update time. It does not install trust.
POST /api/v1/federation/providers/{providerId}/metadata-apply refetches the
document and requires that exact digest and provider version plus explicit
realm, endpoint, token-type, and certificate selections. Successful apply
records provenance, removes any enabled projection, and moves the provider to
draft. Validation and enable refetch and compare the document; authentication
uses only the pinned local runtime and does not reach back to metadata.
After a signed document is validated and enabled, operators can opt into
automatic-additive monitoring with
POST /api/v1/federation/providers/{providerId}/metadata-refresh-policy and
run the same bounded transaction on demand with metadata-refresh. Atlas
automatically adds keys only when the exact pinned metadata signer, realm,
passive endpoint, token type, and every existing trusted key remain present.
The local runtime is replaced atomically after validation. Key removal, signer
change, structural drift, unsigned metadata, or fetch failure is recorded as
review-required or failed while the last known-good runtime remains active.
This deliberate split prevents an arbitrary upstream metadata edit from
becoming a live trust change. Invalid or SHA-1 XML signatures, ambiguous roles, expired
documents, unsafe endpoints or keys, private production targets, digest drift,
selection drift, and stale provider versions fail closed. See
docs/deployment/ws-federation-inbound.md for the request shapes and operator
sequence.
Inbound WS-Federation authentication requirements
An inbound ws-fed provider may set wsFed.homeRealm to one exact absolute
URI. Atlas emits that provider-owned value as whr; a browser query cannot
supply or override it. This is the OASIS fixed-home-realm pattern, not dynamic
home-realm discovery, and it does not alter provider selection, issuer checks,
or authorization.
Enabled WS-Federation providers also participate in Atlas’s normal identity- provider routing. Ordered tenant rules can select the exact live provider from a canonical login-hint domain, server-derived network zone, application, managed-device authority, or current directory context. The resolver omits the raw hint and returns a short-lived one-time route token bound to the provider, rule version, tenant, source, and applicable authorities. The hint selects a route; it is never identity, assurance, trust, or authorization evidence. This is Atlas-native dynamic provider selection, not an external OASIS Home Realm Discovery Service.
The provider may also set
wsFed.requestedAuthenticationMethod to one exact absolute wauth URI and
wsFed.freshAuthenticationMinutes to a value from 0 through 1440. Atlas emits
those values as wauth and wfresh, binds them into encrypted one-time
transaction state, and enforces them against the signed response. The SAML
authentication method/context or JWT acr must match exactly. SAML must carry
a signed authentication instant and JWT must carry signed auth_time when
freshness is requested; zero requires authentication for the current Atlas
transaction. Missing, mismatched, future, or stale evidence fails closed with
only the bounded clock-skew allowance. The request actor cannot override these
provider-owned fields.
Inbound WS-Federation cleanup
A ws-fed provider may register up to 16 exact HTTPS
wsFed.signOutReplyUrls. Provider responses derive a provider-specific
wsFed.signOutCleanupUrl under
/api/v1/sso/wsfed/inbound/{providerId}/cleanup; configure that URL as the
partner identity provider’s relying-party cleanup endpoint.
After a verified inbound sign-in, Atlas binds an opaque HttpOnly, Secure,
SameSite=None cookie to the exact tenant, provider, canonical subject, and
local session in encrypted shared cache. A GET cleanup request must carry
wa=wsignoutcleanup1.0. Optional wreply is accepted only when it exactly
matches the provider passive endpoint or a registered sign-out reply URL.
Atlas commits terminal PostgreSQL session revocation before JWT, cache, and
browser-state convergence. Missing or consumed bindings complete
idempotently; cross-provider bindings and unregistered continuations fail
closed. This profile handles provider-initiated relying-party cleanup. It does
not rely on message parameters to identify a local session.
Set wsFed.rpInitiatedSignOut only for a provider whose passive endpoint
accepts wa=wsignout1.0. Provider responses derive
wsFed.rpInitiatedSignOutCallbackUrl; register that exact HTTPS path when the
provider validates optional wreply. During ordinary authenticated logout,
Atlas commits terminal PostgreSQL revocation and removes local provider/JWT/
cache state before returning the upstream URL. Encrypted one-time callback
state binds the provider, tenant, already revoked session, and safe internal
return path; it cannot issue credentials or restore the session, and replay
fails closed. WS-Federation does not guarantee sign-out completion or that a
provider honors optional wreply, so provider return is never a prerequisite
for local logout.
Bounded WS-Trust issuance and managed token production
An active WS-Federation application can opt into the authenticated-bearer
WS-Trust 1.3 Issue and Validate endpoints under
/api/v1/sso/wsfed/{appId}/trust. Status-only Validate is repeatable and
checks only a plaintext Atlas token issued for the exact application. It does
not decide authorization or source-session status.
The application MEX document embeds a standard WSDL 1.1 section, also
available from /trust/wsdl and /trust/mex?wsdl. Its SOAP 1.2 bindings use
the OASIS WS-Trust message QNames, exact WS-Addressing actions and HTTPS
addresses, and attached transport policies. Only runtime-eligible Issue,
Validate, and UsernameMixed ports are emitted. Importing the WSDL does not
install trust or grant access; the runtime authorities below remain decisive.
wsFed.wsTrustTokenTranslation separately enables token-producing Validate
for the target application’s exact configured token type. This is a managed
federation path, not an ambient STS. The caller must present a live Atlas
bearer session originating from the exact enabled inbound WS-Federation
provider that signed the source token. Atlas requires the current provider
generation, exact signed subject continuity, configured wauth and wfresh,
a one-time source-token claim shared with inbound replay protection, and an
explicit restriction-only provider-to-application hub route. The normal
assignment, RBAC/ABAC, AAL, freshness, TrustAI, claim-release, and rate-limit
authorities run before the application token is minted.
Invalid source tokens return only the standard WS-Trust invalid status and no
replacement token. Unavailable trust, replay, signing, persistence, or policy
authority fails closed. Raw source subjects and token identifiers remain in
the authentication boundary; the application issuer receives only the
provider ID, source token type, and a token-ID hash. Caller-supplied trust,
arbitrary providers, batch exchange, Renew, Cancel, proof keys, and general
many-to-many token processing are not supported. See
docs/deployment/ws-trust.md for the exact request, MEX/WSDL, and deployment
contracts.
API
Use /api/v1/federation/providers and its provider subpaths. Use /api/v1/icam/workflows/federation-onboarding for independently approved cross-domain onboarding. The workflow persists an idempotent reference-only provider draft in the same managed registry and records a fail-closed negative-validation check. It does not enable the provider. An operator must run the provider validation endpoint successfully before the separate enable transition can succeed.
Social OIDC Providers
Use /api/v1/federation/social-providers for Google, Microsoft personal accounts, Apple, or a generic social OIDC issuer.
The API creates a draft in the same provider registry and uses the same discovery, state, nonce, PKCE, token-signature, JIT, validation, enable, and disable runtime.
Social provider creation accepts only a vault://, kms://, or pkcs11:// secret reference and HTTPS issuer and redirect URIs.
The default account-link mode is admin-review or subject-only.
verified-email linking is opt-in and requires the signed email_verified claim.
Implicit trusted-directory matching is forbidden for social providers, and collisions always deny for review.
Required Negative Tests
Reject unsigned or incorrectly signed assertions, invalid issuer or audience, unapproved redirect URI, stale or replayed response, expired/not-yet-valid assertion, unsupported algorithm, untrusted certificate, missing nonce/state, PKCE failure, unverified-email linking, and account-link ambiguity.