Lightweight Mode For FedCM
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: Mozilla has contributed partial, tentative tests, though these do not yet reflect the current state of the explainer.
Summary
This feature allows Identity Providers (IdPs) to store information about a user's account in the browser ahead of time via the Login Status API, and allow Relying Parties (RPs) to request access to this information via a browser-mediated prompt similar to the current FedCM flow. By storing the account information ahead of time, this eliminates the browser's need to make calls to the accounts endpoint to display the browser-mediated dialog, improving both performance and privacy. Lightweight Mode for FedCM also requires less complex integration for Identity Providers. Currently these benefits come at the cost of reduced freshness for account hint information presented to the user, but future work may address this limitation if there is sufficient developer interest.
Motivation
Lightweight Mode for FedCM provides an alternative mode for FedCM that addresses two concerns with the FedCM specification. One concern relates to the ergonomics of implementing the full FedCM specification as an Identity Provider. Lightweight Mode For FedCM, when coupled with the “FedCM as a trust signal for the Storage Access API” proposal, will provide a simple way to retrofit existing third-party-cookie dependent Identity Provider implementations to make use of the improved FedCM user experience and give users more context to make informed decisions. Another concern relates to the “pull” rather than “push” nature of FedCM to allow the user agent to display an account chooser to the user. While FedCM normally issues a credentialed request to an “accounts” endpoint to provide the user with information about available accounts, Lightweight Mode for FedCM addresses this by allowing the Identity Provider to preemptively store user information that can then be displayed by the user agent when presenting the account chooser, instead of issuing a request to IdP before the user has selected an account. This prevents the IdP and RP from colluding to link/identify users without their knowledge via timing attacks.
Standards & signals
- Firefox: No signal — (Implemented behind a flag.)
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=lightweight-mode-for-fedcm
- 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+Lightweight%20Mode%20For%20FedCM
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Lightweight%20Mode%20For%20FedCM
- Baseline status: https://webstatus.dev/?q=Lightweight%20Mode%20For%20FedCM
Explainers: https://github.com/fedidcg/LightweightFedCM