[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
- Specification: https://github.com/w3c-fedid/FedCM/pull/823
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/510015140
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=fedcm-support-web-identity-registrable-domain-subdomain-for-well-known-file-discovery
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+%5BFedCM%5D%20Support%20web-identity.%3Cregistrable%20domain%3E%20subdomain%20for%20well-known%20file%20discovery
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=%5BFedCM%5D%20Support%20web-identity.%3Cregistrable%20domain%3E%20subdomain%20for%20well-known%20file%20discovery
- Baseline status: https://webstatus.dev/?q=%5BFedCM%5D%20Support%20web-identity.%3Cregistrable%20domain%3E%20subdomain%20for%20well-known%20file%20discovery
Explainers: https://github.com/w3c-fedid/FedCM/pull/828