Skip to content

Commit 091521f

Browse files
authored
Add tel and username to IdP accounts (mdn#40918)
1 parent 2c3ac72 commit 091521f

File tree

1 file changed

+10
-4
lines changed
  • files/en-us/web/api/fedcm_api/idp_integration

1 file changed

+10
-4
lines changed

files/en-us/web/api/fedcm_api/idp_integration/index.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ The response to a successful request returns a list of all the IdP accounts that
127127
"given_name": "Elaina",
128128
"name": "Elaina Maduro",
129129
"email": "elaina_maduro@idp.example",
130+
"tel": "+491234567890",
131+
"username": "elmaduro",
130132
"picture": "https://idp.example/profile/123",
131133
"approved_clients": ["123", "456", "789"],
132134
"domain_hints": ["rp1.example.com", "rp3.example.com"],
@@ -136,7 +138,7 @@ The response to a successful request returns a list of all the IdP accounts that
136138
{
137139
"id": "elly",
138140
"given_name": "Elly",
139-
"name": "Elly",
141+
"username": "lamaduro",
140142
"email": "Elly@idp.example",
141143
"picture": "https://idp.example/profile/456",
142144
"approved_clients": ["abc", "def", "ghi"],
@@ -148,14 +150,18 @@ The response to a successful request returns a list of all the IdP accounts that
148150
}
149151
```
150152

151-
This includes the following information:
153+
This includes the following information where `name`, `email`, `username`, and `tel` are optional but at least one of them must be present and nonempty.
152154

153155
- `id`
154156
- : The unique ID of the user.
155-
- `name`
157+
- `name` {{optional_inline}}
156158
- : The family name of the user.
157-
- `email`
159+
- `email` {{optional_inline}}
158160
- : The email address of the user.
161+
- `tel` {{optional_inline}}
162+
- : The telephone number of the user. Can be in any format.
163+
- `username` {{optional_inline}}
164+
- : The username of the user.
159165
- `given_name` {{optional_inline}}
160166
- : The given name of the user.
161167
- `picture` {{optional_inline}}

0 commit comments

Comments
 (0)