FedCM: domainHint
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- In developer trial (Behind a flag) (Chrome In developer trial (Behind a flag))
- Intent stage
- None
WPT details: Look for domainhint in https://wpt.fyi/results/credential-management?label=experimental&label=master&aligned.
Summary
Allows showing only accounts matching a given domain hint in the FedCM account chooser. With domain hint, developers may provide a better UX by only showing the federated login accounts from the domain that they accept.
Motivation
Some RPs only accept federated login from accounts that belong to a specific domain, or from corporate accounts. With the domain hint addition, a developer can request the user agent to only show accounts matching the requirement so that users aren't shown accounts which do not meet the requirements.
Standards & signals
- Specification: https://github.com/fedidcg/FedCM/pull/512
- Firefox: Positive — Firefox asked us to not send standards positions requests for small FedCM additions, and to instead rely on pull requests.
- Safari: Closed Without a Position
- Web developers: Positive — This is a feature requested by developers.
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1518935
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=credential-management
- 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%3A%20domainHint
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=FedCM%3A%20domainHint
- Baseline status: https://webstatus.dev/?q=FedCM%3A%20domainHint
Explainers: https://github.com/fedidcg/FedCM/issues/427