FedCM-Allow IDP interception of FedCM Request via Service Worker
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Implement the FedCM Identity Handler, which allows Identity Providers (IDPs) to declare a Service Worker in their config.json that intercepts credentialed FedCM requests (accounts, id_assertion, disconnect). Currently, FedCM fetches to IDP endpoints (accounts, token, disconnect) are made directly by the browser with no opportunity for the IDP to augment the request. This prevents IDPs from: - Adding DPoP (Demonstration of Proof-of-Possession) proof headers - Performing client-side token enrichment or transformation - Implementing custom caching strategies for account responses - Adding attestation or other security headers to credentialed requests The Identity Handler allows IDPs to register a Service Worker that receives an `identityrequest` event for each FedCM endpoint call, enabling request augmentation before it reaches the IDP server. On failure, the browser transparently falls back to normal network fetch.
Motivation
https://github.com/w3c-fedid/FedCM/issues/80
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/498749613
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=fedcm-allow-idp-interception-of-fedcm-request-via-service-worker
- 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+FedCM-Allow%20IDP%20interception%20of%20FedCM%20Request%20via%20Service%20Worker
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=FedCM-Allow%20IDP%20interception%20of%20FedCM%20Request%20via%20Service%20Worker
- Baseline status: https://webstatus.dev/?q=FedCM-Allow%20IDP%20interception%20of%20FedCM%20Request%20via%20Service%20Worker
Explainers: https://github.com/w3c-fedid/identity-handler/blob/main/identity-handler-explainer.md