demo · v136

Phone-only IdP

The chromestatus motivation: some IdPs (telco logins, regional providers) don't have email addresses for users — just a phone number and a tenant-scoped username. Pre-136, the FedCM chooser had no way to show those. With alternative fields, the IdP can return tel and username. Switch IdP shape below, see the chooser adapt.

UI mockup of Chrome's FedCM chooser with the three field shapes the spec now supports.
Mockup of the browser's chooser UI. A real FedCM exchange requires the IdP's manifest at /.well-known/web-identity — this page focuses on the field shape the new API surfaces.

IdP returned account fields:

sign in to resy.example

navigator.credentials.get response (account 0)

the code

const cred = await navigator.credentials.get({
  identity: { providers: [{
    configURL: "https://telco-idp.example/fedcm.json",
    clientId: "abc",
    fields: ["username", "tel"],  // 136+
  }] }
});

why this angle

The sibling concept lets you toggle which fields appear, but ignores the question of why. This concept answers that: it shows the three distinct IdP shapes that motivated the new fields and renders the chooser for each. Phone-only and username+tel are the shapes FedCM couldn't represent before 136 — telco and enterprise IdPs were locked out.

see also