← Back to release summary

[FedCM] Support web-identity.<registrable domain> subdomain for well-known file discovery

Category
Miscellaneous
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

FedCM today requires the well-known file at https://<registrable-domain>/.well-known/web-identity (the apex). This blocks deployments where: - the apex cannot host files (apex domains can't use CNAME, breaking modern CDN/cloud onboarding), - the apex and the auth subdomain are owned by different teams, or - a white-label IDP is CNAME'd onto a customer subdomain and has no control over the customer apex. Proposal (per PR #823): Chromium should fetch the well-known file from https://web-identity.<registrable-domain>/.well-known/web-identity first, and fall back to the existing apex URL if the subdomain fetch fails (DNS/TLS/HTTP error, malformed JSON, or provider_urls length > 1). The fallback runs in parallel with the config fetch; request shape (opaque origin, credentials: omit, no-referrer, Sec-Fetch-Dest: webidentity) is unchanged. The same-site skipWellKnown shortcut is preserved. Why it's safe: The label is fixed (web-identity.), so the IDP cannot encode RP identity in the discovery URL — the existing anti-fingerprinting guarantee holds.

Motivation

https://github.com/w3c-fedid/FedCM/issues/809

Standards & signals

Ecosystem

Explainers: https://github.com/w3c-fedid/FedCM/pull/828

View on chromestatus.com