Protocol and deployment notes · Deployment
Inbound WS-Federation relying party
On this page
Managed provider configurationPreferred metadata-assisted workflowGuarded automatic metadata refreshManual pinned workflowAtlas-native provider discoveryBrowser flowIdP-initiated browser flowVerification boundaryProvider-initiated sign-out cleanupAtlas/RP-initiated upstream sign-outRotation and operationsDeliberate boundariesAtlas provides bounded, separately selected WS-Federation passive relying-party
profiles for an enterprise identity provider that issues a signed SAML 1.1 or
SAML 2.0 bearer assertion, or a signed JWT in a WS-Security
BinarySecurityToken.
The resulting subject enters the same Atlas account-link, JIT, group-sync,
assurance, session, routing, federation-hub, and TrustAI authorities used by
the existing inbound SAML and OIDC paths. An upstream claim is policy input;
it is never a local role or authorization grant by itself.
Managed provider configuration
Create the provider through POST /api/v1/federation/providers, validate it,
and explicitly enable it through the standard provider lifecycle API. Provider
mutations use the existing operator authorization, configured assurance,
freshness, audit, and durable Universal Directory configuration boundaries.
Preferred metadata-assisted workflow
Atlas can import the bounded OASIS WS-Federation identity-provider contract. Initial trust always requires an explicit digest-bound operator apply. A separate opt-in scheduler can later add a rollover key only under strict cryptographic and protocol continuity. First create an incomplete draft containing the Atlas-local reply and audience, optional provider-owned request policy, and the partner metadata URL:
{
"id": "mission-wsfed-idp",
"protocol": "ws-fed",
"name": "Mission WS-Federation IdP",
"metadataUrl": "https://idp.example.mil/FederationMetadata/2007-06/FederationMetadata.xml",
"tlsCaCertPath": "/etc/atlas/trust/mission-idp-ca.pem",
"wsFed": {
"replyUrl": "https://atlas.example.mil/api/v1/authn/federated/ws-fed/callback",
"audience": "urn:atlas:mission",
"homeRealm": "urn:mission:workforce",
"requestedAuthenticationMethod": "http://schemas.microsoft.com/claims/multipleauthn",
"freshAuthenticationMinutes": 15,
"idpInitiatedSignIn": true,
"idpInitiatedDefaultReturnPath": "/trust/operations?view=federated",
"rpInitiatedSignOut": true,
"signOutReplyUrls": [
"https://idp.example.mil/adfs/ls/"
]
}
}
tlsCaCertPath is optional for a publicly trusted endpoint. When supplied,
Atlas adds that bounded PEM bundle to the system trust pool for this provider's
metadata fetch; it does not disable TLS verification.
Then use the two explicit management actions:
POST /api/v1/federation/providers/<provider-id>/metadata-previewperforms a read-only fetch. The response includesproviderUpdatedAt, the complete document SHA-256 digest, entity ID, HTTPS passive endpoints, offered and Atlas-supported token types, public certificate descriptions and SHA-256 fingerprints, XML-signature status, and certificate additions and removals. It never returns certificate PEM and reportsauthenticationTrustState: unchanged.POST /api/v1/federation/providers/<provider-id>/metadata-applyrefetches the document and requires the exact previewed digest, provider update time, realm, selected endpoint, selected token type, and one to five selected certificate fingerprints. For example:
{
"expectedProviderUpdatedAt": "2026-08-15T12:00:00Z",
"documentSha256": "<64 lowercase hexadecimal characters>",
"realm": "https://idp.example.mil/adfs/services/trust",
"passiveEndpoint": "https://idp.example.mil/adfs/ls/",
"tokenType": "urn:oasis:names:tc:SAML:2.0:assertion",
"signingCertificateSha256": ["<selected certificate fingerprint>"]
}
Apply fails if the document changed after preview, any selection is not in the
fresh document, the provider changed concurrently, or the selected
configuration is not runtime-ready. A successful apply records metadata
provenance and rollover differences, removes an existing enabled projection,
and moves the provider to draft. Run validate, then enable, as separate
actions.
The parser accepts exactly one SAML EntityDescriptor with exactly one OASIS
WS-Federation SecurityTokenServiceType role. It bounds document size,
endpoints, token types, and certificates; rejects DTD/entity declarations,
expired metadata, ambiguous roles, unsafe keys, cleartext passive endpoints,
and SHA-1 signatures; and verifies an XML signature when present. An embedded
signer establishes document integrity, not external trust by itself. Atlas
therefore pins the complete operator-approved document digest whether the
document is signed or unsigned.
Production metadata fetches require HTTPS, TLS 1.2 or newer, bounded redirects, DNS revalidation on connection, public network targets, a ten-second timeout, and a 2 MiB response limit. Local HTTP/private targets are available only in development/test. Validation and enable refetch the metadata and require the pinned digest and every selected field to remain present. Normal browser authentication performs no metadata fetch: it uses only the enabled local runtime. If reachback is lost, already enabled authentication continues; a new validate/enable fails closed. If metadata changes, current authentication trust does not change unless an operator applies it or the separately enabled additive-only refresh boundary accepts it.
Guarded automatic metadata refresh
After a signed metadata document has been applied, validated, and enabled, an operator may enable scheduled rollover monitoring through the standard API:
POST /api/v1/federation/providers/mission-wsfed-idp/metadata-refresh-policy
Content-Type: application/json
{
"expectedProviderUpdatedAt": "2026-08-15T12:10:00Z",
"mode": "automatic-additive",
"intervalMinutes": 360
}
The interval may be 15 through 10,080 minutes and defaults to six hours when
omitted. manual disables scheduled refresh. Enabling automatic mode requires
an enabled local runtime, an XML-signature-verified document, a pinned metadata
signer fingerprint, and a current validUntil beyond the safety margin. Every
gateway performs a due check off the browser authentication path; a shared
encrypted-cache lease prevents duplicate work across live replicas, and the
lease holder reloads the authoritative Universal Directory provider version
before evaluating its optimistic update.
Automatic application is intentionally narrower than a generic metadata update. The fetched document must:
- verify under the exact pinned metadata-signer certificate;
- retain the exact realm, selected HTTPS passive endpoint, and token type;
- retain every currently trusted signing certificate;
- contain one to five current, profile-compatible signing certificates; and
- carry a
validUntilbeyond the refresh safety margin.
Atlas may atomically add newly published signing certificates and repin that
document while the provider remains enabled. This supports the staged rollover
pattern in which a partner publishes a secondary key before promoting it. A
key removal, metadata-signer change, unsigned document, realm/endpoint/token
drift, invalid document, or fetch failure cannot alter the live runtime. The
provider instead reports review-required or failed, includes only the
pending document digest and certificate-digest difference, and continues
offline authentication from the last known-good pinned trust.
An operator can run the same bounded transaction immediately:
POST /api/v1/federation/providers/mission-wsfed-idp/metadata-refresh
Content-Type: application/json
{
"expectedProviderUpdatedAt": "2026-08-15T12:11:00Z"
}
Both actions require the normal provider-management capability, configured
fresh assurance, optimistic provider version, durable configuration write,
audit event, and customer hook. Manual metadata-apply always resets refresh
to manual; validate and enable the new trust, then opt in again. Atlas does
not automatically remove a key or accept a new metadata signer.
Manual pinned workflow
For controlled environments that exchange configuration out of band, the SAML 2.0 profile can still be created with the complete pinned configuration:
{
"id": "mission-wsfed-idp",
"protocol": "ws-fed",
"name": "Mission WS-Federation IdP",
"wsFed": {
"realm": "urn:partner:mission:idp",
"passiveEndpoint": "https://idp.example.mil/idp/prp.wsf",
"replyUrl": "https://atlas.example.mil/api/v1/authn/federated/ws-fed/callback",
"rpInitiatedSignOut": true,
"signOutReplyUrls": [
"https://idp.example.mil/idp/logout-complete"
],
"audience": "urn:atlas:mission",
"tokenType": "urn:oasis:names:tc:SAML:2.0:assertion",
"homeRealm": "urn:mission:workforce",
"requestedAuthenticationMethod": "http://schemas.microsoft.com/claims/multipleauthn",
"freshAuthenticationMinutes": 15,
"idpInitiatedSignIn": true,
"idpInitiatedDefaultReturnPath": "/trust/operations?view=federated",
"signingCertificatesPem": [
"-----BEGIN CERTIFICATE-----\n...public certificate only...\n-----END CERTIFICATE-----"
]
},
"assurance": {"aal": 2, "ial": 1, "fal": 1},
"jit": {"mode": "review-required"},
"accountLink": {
"mode": "trusted-directory-match",
"requireVerifiedEmail": true,
"collisionAction": "deny-and-review"
},
"groupSync": {"mode": "DISABLED", "claim": "groups"}
}
The passive endpoint and reply URL must use HTTPS. replyUrl must be the Atlas
callback path shown above and cannot contain a query or fragment. realm is
the exact upstream assertion issuer. audience is the Atlas relying-party
identifier used as wtrealm, WS-Trust AppliesTo, and the SAML audience.
These values are intentionally separate. To select SAML 1.1, use the exact
legacy assertion token type
urn:oasis:names:tc:SAML:1.0:assertion. To select JWT, use
urn:ietf:params:oauth:token-type:jwt. The provider cannot negotiate or mix
token profiles at runtime. Optional homeRealm is one absolute URI no longer
than 2048 characters. Atlas emits it as the fixed whr value selected by the
provider configuration; a browser query cannot supply or override it. This
supports a known upstream realm and is not dynamic home-realm discovery.
requestedAuthenticationMethod, when present, must
be one absolute URI no longer than 2048 characters. The optional
freshAuthenticationMinutes value is an integer from 0 through 1440; omission
does not impose an additional authentication-age requirement.
idpInitiatedSignIn is disabled by default. Enabling it requires one explicit
safe Atlas-local idpInitiatedDefaultReturnPath. Provider read responses return
the exact derived idpInitiatedSignInUrl; configure that URL as the provider's
Atlas relying-party response endpoint. The URL is bound to the canonical
provider ID and the HTTPS origin of replyUrl. Atlas does not accept a separate
operator-entered response origin, an external default destination, or a
browser/IdP override. freshAuthenticationMinutes: 0 is incompatible with this
flow because no Atlas request instant exists; omit freshness or configure a
positive maximum age that the signed authentication instant must satisfy.
Atlas accepts one to five current public signing certificates. SAML profiles require RSA keys of at least 2048 bits with a safe exponent. JWT accepts those RSA keys or valid EC keys of at least 256 bits. Private key material, expired or not-yet-valid certificates, weak or unsupported keys, an empty trust set, and token types other than the three exact configured profiles fail validation. Read APIs return certificate count and SHA-256 fingerprints instead of PEM bodies.
signOutReplyUrls is an optional list of at most 16 exact HTTPS URLs. It does
not accept domains, wildcards, relative paths, user information, or runtime
additions. Provider read responses derive signOutCleanupUrl from the Atlas
replyUrl origin and the provider ID. Configure that Atlas URL as the
partner's WS-Federation relying-party cleanup endpoint. A cleanup request may
omit wreply; if present, Atlas accepts only the exact passive endpoint or one
of these explicit URLs.
rpInitiatedSignOut is an explicit opt-in. Provider read responses derive
rpInitiatedSignOutCallbackUrl from the Atlas replyUrl origin; allow that
HTTPS endpoint at the upstream identity provider if it validates sign-out
return targets. Atlas adds opaque one-time state at runtime. The configured
passive endpoint must not contain fixed wa, wtrealm, wreply, wctx,
wct, whr, wauth, or wfresh parameters, because Atlas owns those protocol
fields. Other fixed provider-specific query parameters are preserved.
Use the normal lifecycle actions after creating a draft:
POST /api/v1/federation/providers/<provider-id>/validatePOST /api/v1/federation/providers/<provider-id>/enablePOST /api/v1/federation/providers/<provider-id>/disable
An enabled provider is also eligible for the standard federation-routing and restriction-only organization-hub controls. Disabling or retiring the provider removes its runtime immediately.
Atlas-native provider discovery
WS-Federation providers participate in Atlas's standard tenant-scoped identity
provider routing. A client can resolve a sign-in path through
POST /api/v1/authn/federated/route with an optional loginHint and opaque
applicationId. The same ordered first-match policy used for OIDC and SAML
can select a live WS-Federation provider from a canonical login-hint domain,
server-derived network zone, application, managed-device authority, or current
Universal Directory context. The public response omits the raw hint and
returns a protocol-specific loginPath containing a short-lived one-time
route token.
The WS-Federation login atomically consumes that token and revalidates its
tenant, provider, rule version, source address, network/device authority, and,
when used, current directory authority. The hint decides only which configured
provider to try. It is not proof of identity, authentication assurance, trust,
or authorization. The IdP receives neither the raw hint nor route evidence.
After route selection, the configured fixed homeRealm can still be forwarded
as whr to that exact provider.
This is Atlas-native dynamic provider selection. It is not an unauthenticated OASIS Home Realm Discovery Service and does not accept an upstream-returned realm URI as a trust decision. See the Identity Provider Routing operator guide for rule management and evidence semantics.
Browser flow
Start sign-in with:
GET /api/v1/authn/federated/ws-fed/login?provider=<provider-id>&return_url=/
Atlas creates encrypted one-time state and redirects to the exact configured passive endpoint with:
wa=wsignin1.0wtrealm=<configured audience>wreply=<configured Atlas callback>wctx=<opaque one-time state>wct=<current RFC 3339 time>whr=<configured fixed home-realm URI>, when configured;wauth=<configured exact authentication-method URI>, when configured; andwfresh=<configured maximum authentication age in minutes>, when configured. A value of zero requests authentication for this transaction.
The identity provider form-posts exactly one wa, wresult, and wctx to:
POST /api/v1/authn/federated/ws-fed/callback
The callback accepts only application/x-www-form-urlencoded, rejects query
parameters, duplicate or unknown fields, and limits the body to 1 MiB. State is
consumed before provider selection, so a malformed or rejected response cannot
be retried under the same transaction.
IdP-initiated browser flow
For an enabled provider with idpInitiatedSignIn: true, use the read-only
idpInitiatedSignInUrl returned by the standard provider API. Its shape is:
POST /api/v1/authn/federated/ws-fed/idp-initiated/<provider-id>
The identity provider form-posts exactly one wa=wsignin1.0 and one wresult.
Atlas rejects query parameters, wctx, return URLs, duplicate or unknown form
fields, non-canonical/encoded provider aliases, and disabled providers. The
provider-specific path selects one managed trust configuration; neither the
browser nor token can select another provider.
The signed response passes through the same verification boundary described
below. The WS-Trust AppliesTo must equal the configured audience. SAML 2.0
also binds its bearer recipient to the exact provider-specific HTTPS response
URL; the SAML 1.1 and JWT profiles retain their defined subject/carrier
boundaries. The assertion ID or JWT jti is claimed atomically, so the absence
of Atlas-created wctx does not remove token replay protection. Atlas then
reuses the normal account-link, JIT, group-sync, assurance, session, TrustAI,
provider-session, and cleanup authorities and redirects only to the fixed local
default path. Upstream claims remain policy inputs and cannot create a local
authorization grant.
Verification boundary
wresult must be one WS-Trust February 2005
RequestSecurityTokenResponse containing exactly:
- a bounded response
Lifetime; - one
AppliesTomatching the configured Atlas audience; - one signed SAML 1.1 or SAML 2.0 assertion, or one JWT
BinarySecurityToken, inRequestedSecurityToken; - the exact provider-selected
TokenType; and - the WS-Trust
Issuerequest type.
For SAML 2.0, Atlas verifies the configured issuer element, RSA-SHA-2 XML
signature, ID, issue time, conditions, single audience, bearer confirmation,
exact callback recipient, subject, authentication statement/context, and
bounded attributes. For SAML 1.1, Atlas verifies the root Issuer,
AssertionID, versions 1/1, issue time, conditions, one
AudienceRestrictionCondition, the bearer ConfirmationMethod, one
authenticated NameIdentifier, one AuthenticationStatement, and bounded
SAML 1.x attributes. The authenticated subject and attribute subject must be
identical. For JWT, Atlas verifies a bounded compact JWS carried by the exact
WS-Security token element, using only current configured RSA or EC certificate
keys. It rejects remote-key and unsupported critical headers, requires exact
issuer and one exact audience, bounds iat, nbf, exp, sub, jti, and
released string attributes, and ignores an embedded certificate as a trust
source. Every profile must remain inside the RSTR lifetime. SHA-1 is rejected
for SAML, and the assertion ID or JWT jti is atomically claimed independently
of the one-time browser state.
homeRealm is a request-routing hint only. It does not identify the returned
subject, select an Atlas provider, relax issuer validation, or create an
authorization grant. Atlas takes the exact value from the enabled provider
configuration and ignores a browser-supplied whr query parameter.
requestedAuthenticationMethod and freshAuthenticationMinutes are response
requirements, not decorative redirect parameters. Atlas copies both values
into the encrypted one-time state. When requestedAuthenticationMethod is
configured, the signed SAML authentication method/context or signed JWT acr
must match the exact URI. When freshAuthenticationMinutes is configured,
SAML must carry a signed authentication instant and JWT must carry signed
auth_time; the instant cannot be in the future or older than the configured
maximum age. A zero value requires authentication at or after the Atlas
transaction began. All comparisons retain the bounded 90-second clock-skew
allowance. Missing, mismatched, or stale signed evidence rejects the callback.
Atlas maps only the exact Microsoft multipleauthn SAML 1.1 authentication
method to AAL2. The SAML 1.x password method and unknown methods remain AAL1;
an arbitrary upstream method cannot manufacture stronger local assurance. A
JWT may map multipleauthn to AAL2 only when its signed amr array also
contains mfa; a mismatched claim set fails closed.
Only after these checks does Atlas resolve or create the local identity under the configured account-link and JIT policies, reconcile explicitly mapped groups, map assurance, run the normal session/tenant/TrustAI authorities, and issue standard Atlas access and refresh credentials. The final browser handoff uses the same one-time session-code mechanism as inbound SAML and OIDC.
Provider-initiated sign-out cleanup
After a verified inbound sign-in, Atlas creates a random cleanup binding in
the shared encrypted cache and returns it only as a scoped, HttpOnly,
SameSite=None, Secure browser cookie so the standard cross-site cleanup
frame can carry it. The binding contains the exact Atlas session,
tenant, provider, and canonical local subject and expires with the session. It
is not an access credential.
The identity provider can send the browser to the provider response's
signOutCleanupUrl using GET:
GET /api/v1/sso/wsfed/inbound/<provider-id>/cleanup?wa=wsignoutcleanup1.0&wreply=<exact-registered-url>
The WS-Federation cleanup message is not authenticated and carries no subject
or session identifier. Atlas therefore requires the opaque browser binding,
revalidates it against the exact provider session and current provider
configuration, and commits terminal revocation to PostgreSQL before revoking
JWTs and clearing cached/browser session state. A provider-binding mismatch
fails closed. A missing or already consumed binding completes idempotently so
a partner can safely repeat browser cleanup. Unknown or duplicate parameters,
non-GET requests, and an unregistered wreply are rejected.
This is inbound provider-initiated relying-party cleanup. It does not discover partner logout targets dynamically or accept a caller-supplied session identifier. Browsers that block the scoped cookie cannot identify a local session through the unsigned cleanup message; normal Atlas session expiry and local revocation remain authoritative.
Atlas/RP-initiated upstream sign-out
For an enabled provider with rpInitiatedSignOut: true, the standard
authenticated Atlas logout path can continue the browser to the exact pinned
passive endpoint with:
wa=wsignout1.0; andwreply=<derived Atlas callback with opaque state>.
Atlas first commits terminal local session revocation to PostgreSQL and clears the local provider/JWT/cache projections. Only then does it return the upstream URL. Upstream availability, redirect behavior, or refusal therefore cannot undo or delay local logout.
The callback consumes encrypted one-time state bound to the exact provider,
tenant, and already revoked Atlas session. It can redirect only to the safe
internal path captured from the authenticated logout request; it cannot issue
credentials, restore a session, or accept a caller-selected external target.
Replay fails closed. WS-Federation makes wreply optional and does not
guarantee completion, and Microsoft documents Windows implementations that do
not honor it. Operators must test the selected provider's actual return
behavior; local revocation remains complete even when the provider never
returns the browser.
Rotation and operations
For metadata-assisted signing-certificate rotation, automatic-additive mode
can consume the partner's published overlap without interrupting the enabled
runtime. Inspect metadataRefresh, addedSigningCertificateSha256, and any
pending document digest. Removing an old key still requires an explicit
preview/apply after the overlap window; apply returns the provider to draft for
validation and enablement. Manual providers follow the same staged overlap
sequence by updating the public PEM set. Atlas accepts a signature from any
current configured certificate but never downloads or trusts a certificate
embedded only in an assertion.
Monitor validation evidence and rejected callback events without logging raw
assertions or stable external subjects. A 401 indicates token verification
failure; 400 covers malformed input or consumed state; 403 covers local
policy or reauthentication denial; and 503 means a required replay, session,
or provider authority is unavailable.
Deliberate boundaries
This profile does not currently claim:
- guaranteed provider processing of optional
wreplyafter Atlas sendswsignout1.0; - automatic removal of trusted keys, metadata-signer replacement, or structural metadata changes; automatic-additive mode is continuity-bound;
- a generic or dynamically selected IdP-initiated endpoint, IdP/browser-supplied
wctx, or a caller-selected post-authentication destination; only the explicitly enabled provider-specific endpoint and fixed Atlas-local default path are supported; - an external OASIS Home Realm Discovery Service, upstream dynamic realm
resolution, user-driven realm trust,
wreq, caller-supplied request XML orwhr, or passive request semantics beyond the exact Atlas routing decision and configured fixedwhr,wauth, andwfreshcontract; - password-bearing WS-Trust active sign-in; or
- interoperability with a named Okta, PingFederate, AD FS, Entra, Microsoft 365, WIF, or other external product.
The retained Docker gate at
artifacts/federation-hub-validation/20260815T223842Z uses separate TLS
metadata and IdP fixtures. It proves private-CA metadata fetch, redacted
read-only preview, exact digest and field selection, changed-document
rejection, signed additive rollover under pinned-signer continuity,
review-required key removal without runtime replacement, fail-closed offline
revalidation, and continued authentication from the pinned runtime after
metadata shutdown. It also proves separately selected
managed SAML 2.0, SAML 1.1, and JWT profiles, exact issuer/audience checks, the
SAML 2.0 recipient and SAML 1.1 bearer-subject boundaries, the JWT
BinarySecurityToken/JWS carrier, configured-key verification, unrelated-key
rejection, state and token replay rejection, conservative assurance mapping,
and standard Atlas session issuance. For all three token profiles it also
proves that Atlas emits the exact configured provider-owned fixed whr,
ignores a caller-supplied whr override, emits exact configured wauth and
wfresh=0, accepts
current signed authentication method/time evidence, and rejects an otherwise
valid token with the wrong signed method or a stale signed authentication
instant. For each inbound token profile it also proves Atlas-native login-hint-
domain selection of the exact live WS-Federation provider, raw-hint omission,
and one-time route-token consumption. It also
proves provider-bound cleanup, an exact registered HTTPS continuation,
PostgreSQL terminal revocation before cache/JWT convergence, scoped cookie
handling, and idempotent replay. With rpInitiatedSignOut explicitly enabled,
it also proves local-first terminal revocation, exact wsignout1.0 upstream
navigation, provider/session-bound one-time callback state, safe internal
return, and replay denial. It is protocol-fixture evidence, not named-product
acceptance or proof that every provider honors optional wreply.
The source-bound FED-ACC-016 receipt at
artifacts/federation-external-acceptance/latest/wsfed-idp-initiated.json
additionally covers the provider-specific IdP-initiated path for signed SAML
2.0, SAML 1.1, and JWT; managed API create/read/validate/enable/disable; exact
provider/audience/recipient controls; token replay; fixed local navigation;
account-link and JIT lifecycle boundaries; and fail-closed replay-authority
loss. It uses independent conformance signing identities and does not claim
PingFederate, AD FS, or Entra interoperability.