← Back to release summary

FedCM bundle: LoginHint, UserInfo, and Context

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 116)
Intent stage
None

Summary

Allows customizations to federated login flows that use FedCM. With LoginHint, the RP can specify a hint about the user account they want displayed in the FedCM UI. Accounts which do not match the hint are not displayed. This is mainly used to provide a better UX for returning users. The UserInfo extension allows the IDP to personalize the login experience for returning users, for instance via personalized buttons. After the user has used FedCM with a given IDP on some RP site, this API provides some information about the user accounts to the IDP on subsequent visits to the RP. With the context parameter, the IDP can request for the FedCM dialog to show a different title than “Sign in”, to improve the message being displayed to the user in the FedCM UI.

Motivation

FedCM aims to enable federated identity on the web without reliance on third party cookies. As such, it needs to enable capabilities that were commonplace before. All of the extensions presented enable such pre-existing capabilities. We have developer demand for including these features to enable a providing a better experience for users while using the FedCM API.

Standards & signals

Docs: https://docs.google.com/document/d/1vDXzFArpxbbjfZ9yLXazNs6Kc12g6S7_hTq3udYIh8U/edit?resourcekey=0-3Trh4Xld6cKGNBcO9p6JJg

Explainers: https://github.com/fedidcg/FedCM/issues/382 https://github.com/fedidcg/FedCM/issues/426 https://github.com/fedidcg/FedCM/issues/456

View on chromestatus.com