Protocol and deployment notes · Deployment

WS-Federation browser SSO

On this pageRuntime endpointsSAML 2.0 subject and attribute encryptionJWT token profileSign-outDeliberate boundaries

Atlas provides a bounded WS-Federation identity-provider profile for legacy applications that consume an explicitly selected SAML 2.0 assertion, SAML 1.1 assertion, or JWT through the WS-Federation passive browser flow. SAML 2.0 remains the default. An application may separately opt in to Atlas's bounded authenticated WS-Trust 1.3 Issue, Validate, Renew, Cancel, and symmetric proof-key profiles; see Bounded WS-Trust 1.3. Neither path is a general token-translation service. Atlas's separately governed SAML 1.1, SAML 2.0, and JWT inbound relying-party profiles are described in Inbound WS-Federation relying party.

Set domain.protocol.wsFed.tokenType to saml2, saml1.1, or jwt. The onboarding surface, readiness checks, generated relying-party configuration, metadata, and runtime all use the same canonical selection. Unknown token types block readiness and issuance instead of falling back to another format.

Set domain.protocol.wsFed.passiveRequestPolicyVersion to atlas-wsfed-passive-v1. Normalization supplies this value for existing applications, but the persisted application contract and readiness report make the policy explicit. Unknown versions block readiness and runtime issuance.

Runtime endpoints

For an active WS-Federation application with ID <app-id>, Atlas publishes:

  • metadata: GET /api/v1/sso/wsfed/<app-id>/metadata
  • passive sign-in and sign-out: GET|POST /api/v1/sso/wsfed/<app-id>/passive
  • optional bounded WS-Trust metadata: GET /api/v1/sso/wsfed/<app-id>/trust/mex
  • optional authenticated WS-Trust Issue: POST /api/v1/sso/wsfed/<app-id>/trust/13
  • optional authenticated same-application WS-Trust Validate for plaintext signed tokens: POST /api/v1/sso/wsfed/<app-id>/trust/validate13
  • optional authenticated same-application WS-Trust Renew: POST /api/v1/sso/wsfed/<app-id>/trust/renew13
  • optional authenticated same-application WS-Trust Cancel: POST /api/v1/sso/wsfed/<app-id>/trust/cancel13
  • optional authenticated SAML 1.1 symmetric proof-key Issue: POST /api/v1/sso/wsfed/<app-id>/trust/proof13
  • optional deployment- and application-gated active UsernameMixed Issue: POST /api/v1/sso/wsfed/<app-id>/trust/active13

The passive endpoint accepts wa=wsignin1.0, the exact registered wtrealm, an optional exact registered wreply, an opaque wctx of at most 2048 bytes, and the exact wauth=http://schemas.microsoft.com/claims/multipleauthn MFA request. The latter requires a server-validated Atlas AAL2-or-stronger session; an AAL1 session receives a fail-closed response naming the standard Atlas step-up endpoint. On success the requested method is placed in the SAML 2.0 AuthnContext or the SAML 1.1 AuthenticationStatement, according to the selected token type. Duplicate parameters, another wauth method, a different realm or reply address, cleartext reply endpoints, and unsigned-token application posture fail closed. Every other query parameter is rejected. In particular Atlas does not accept and silently ignore wfresh, whr, wreq, wreqptr, or username; doing so could tell a relying party that an authentication or token constraint was honored when it was not. The successful or rejected runtime response includes X-Atlas-WSFed-Request-Policy: atlas-wsfed-passive-v1, and the OpenAPI operation publishes the same boundary. URL-decoded key matching ensures percent-encoded aliases are rejected along with mixed-case, array-style, double-encoded, and duplicate forms; wreqptr is never dereferenced.

My Apps launches and SP-initiated passive requests use the same assignment, RBAC/ABAC, AAL, freshness, application-state, and rate-limit gates. The browser receives a CSP-restricted auto-submit form containing wa, wresult, and wctx. wresult is a WS-Trust February 2005 RequestSecurityTokenResponse carrying an XML-DSig-signed assertion. The SAML 1.1 profile uses namespace urn:oasis:names:tc:SAML:1.0:assertion, versions 1/1, audience-bounded conditions, bearer subject confirmation, and an XML signature referenced by AssertionID; its RSTR and metadata use the matching legacy token type. Atlas uses a per-application signing key and publishes the corresponding certificate in that application's metadata. SHA-1 and unsigned fallbacks are not supported.

SAML 2.0 subject and attribute encryption

For a relying party that requires protected assertion content, set the WS-Fed application fields as follows:

  • tokenType: saml2
  • assertionEncrypted: true
  • encryptionCertificateRef: an approved cert:// or vault:// governance reference for the relying-party encryption certificate
  • spEncryptionCertificatesPem: one or more public relying-party encryption certificates, with the active certificate first

Atlas never imports the relying party's private key. The readiness gate accepts only a currently valid RSA public certificate of at least 2048 bits in the first position. Issuance encrypts NameID and every released Attribute with a fresh AES-256-CBC content key, wraps each content key with RSA-OAEP and SHA-256, and signs the resulting outer SAML 2.0 assertion. The WS-Trust response therefore carries a signed assertion containing EncryptedID and EncryptedAttribute; it does not contain an EncryptedAssertion.

Certificate rotation is explicit: publish the new public certificate first, retain the previous public certificate after it during the relying party's overlap window, run connector readiness and a relying-party acceptance test, and then remove the old certificate. Atlas encrypts new tokens only to the first certificate. SAML 1.1 encryption, expired certificates, weak or non-RSA keys, missing public certificates, and whole-assertion WS-Fed encryption fail closed.

JWT token profile

For a relying party that consumes the WS-Federation JWT profile, set tokenType to jwt, keep requireSignedTokens and requireTls enabled, and configure at least one attributeStatements or groupAttributeStatements claim. assertionEncrypted must remain false; XML assertion encryption does not apply to a compact JWT.

Atlas constructs iss, sub, aud, iat, nbf, exp, and a fresh jti itself. Application attribute mappings cannot replace those security claims. The selected attributes are emitted as scalar or multi-valued claims, and the exact supported MFA wauth request is represented as acr plus amr: ["mfa"] only after the normal AAL2 gate succeeds. Attribute names, values, and counts are bounded before signing.

The per-application Atlas key signs the compact JWT with RS256, RS384, or RS512 according to tokenSigningAlgorithm; the matching certificate remains available through WS-Federation metadata. The passive response base64-encodes the compact JWS inside a WS-Security BinarySecurityToken whose ValueType is urn:ietf:params:oauth:token-type:jwt. Relying parties must validate the signature, exact issuer and audience, time bounds, and jti according to their own replay policy before creating a session.

Sign-out

When an application has an exact absolute HTTPS logoutUrl, successful token issuance registers that application for the authenticated Atlas session. Atlas stores an encrypted session-bound participant record in the shared cache and revalidates the application's current active state, protocol, and logout URL before using it.

The passive endpoint accepts wa=wsignout1.0 and wa=wsignoutcleanup1.0 by GET or form POST. A primary sign-out loads every currently valid participant, commits the Atlas session's terminal revocation to PostgreSQL, invalidates the runtime projection, clears the SAML and WS-Fed browser cookies, and then returns a CSP-restricted page containing one hidden HTTPS cleanup frame per relying party. Cleanup messages are idempotent. An optional wreply is accepted only when it byte-for-byte matches the initiating application's registered logoutUrl; arbitrary redirects, duplicate fields, unsupported parameters, user-information URLs, and cleartext targets fail closed. Form values take precedence over query values as required by the bounded endpoint contract.

This implements the OASIS passive two-phase sign-out model without allowing logout to become an authorization grant or a cross-application redirect. The retained Docker gate proves durable local revocation and browser delivery to two independent TLS RP fixtures. It uses the test process's shared encrypted Redis fixture, so Redis-cluster failover remains a deployment acceptance item.

Deliberate boundaries

This document covers Atlas in the outbound identity-provider role. The separately cataloged inbound profile is intentionally narrower. Across the current WS-Federation implementation, Atlas does not currently:

  • accept IdP-initiated inbound login, import WS-Federation trust metadata, or process inbound WS-Federation sign-out;
  • enforce wauth methods other than the exact Microsoft multipleauthn MFA request or enforce wfresh semantics;
  • encrypt WS-Federation SAML 1.1 tokens or the complete SAML 2.0 assertion;
  • expose a general token-translating WS-Trust STS, external-token or caller-selected token processing, asymmetric or caller-selected proof keys, Windows transport, certificate-mixed authentication, named WIF-client acceptance, or a vendor-certified active/MEX profile (the separate bounded SAML 1.1 symmetric proof-key endpoint is documented in ws-trust.md); or
  • translate an upstream federated Atlas session without an explicit active restriction-only federation-hub route to the exact WS-Federation application.

This boundary prevents an inbound federation relationship from becoming an implicit cross-protocol grant. A partner identity can reach a WS-Federation application only when the managed upstream provider is bound to an active hub spoke whose exact target is that application and whose server-derived WS-Fed issuer identity still matches at issuance time. The route is restriction-only: it cannot override assignment, application policy, AAL, freshness, TrustAI, or rate-limit denial.

The repository tests and retained Docker validation verify signing, certificate verification, metadata, IdP-initiated handoff, SP-initiated passive request validation, one-time handoff behavior, CSP restriction, weak-crypto rejection, assignment gates, explicit hub-route translation allow/deny, and fail-closed rate-limit authority. Focused tests also prove configured user and group attribute statements, element-level SAML 2.0 subject and attribute encryption, signed JWT claim and carrier construction, wrong-key rejection, fresh ciphertext or JTI, and rejection of unsupported security-relevant request parameters. scripts/validation/validate-wsfed-wreq-policy.py independently reruns the policy, endpoint, readiness, normalization, and OpenAPI checks and retains the FED-ACC-017 receipt under artifacts/federation-external-acceptance/latest/wsfed-wreq-policy.json. The Docker gate posts SAML 2.0, SAML 1.1, and JWT results to separate independent TLS RP fixtures that verify XML-DSig and the exact response boundary; the SAML 2.0 fixture also decrypts the protected elements with the relying party's private key, while the JWT fixture verifies JWS and the bounded registered claims. No named external PingFederate, Okta, AD FS, Microsoft 365, or Windows Azure Pack interoperability claim is made until a retained live artifact exercises that product boundary. The separate bounded WS-Trust proof is documented in Bounded WS-Trust 1.3; it does not change those named-product boundaries.