blob: 2d514abba7eea00170b2973c0fbc03db6495f1f7 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="identitytoolkit_v3.html">Google Identity Toolkit API</a> . <a href="identitytoolkit_v3.relyingparty.html">relyingparty</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#createAuthUri">createAuthUri(body)</a></code></p>
79<p class="firstline">Creates the URI used by the IdP to authenticate the user.</p>
80<p class="toc_element">
81 <code><a href="#deleteAccount">deleteAccount(body)</a></code></p>
82<p class="firstline">Delete user account.</p>
83<p class="toc_element">
84 <code><a href="#downloadAccount">downloadAccount(body)</a></code></p>
85<p class="firstline">Batch download user accounts.</p>
86<p class="toc_element">
87 <code><a href="#getAccountInfo">getAccountInfo(body)</a></code></p>
88<p class="firstline">Returns the account info.</p>
89<p class="toc_element">
90 <code><a href="#getOobConfirmationCode">getOobConfirmationCode(body)</a></code></p>
91<p class="firstline">Get a code for user action confirmation.</p>
92<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070093 <code><a href="#getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080094<p class="firstline">Get project configuration.</p>
95<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040096 <code><a href="#getPublicKeys">getPublicKeys()</a></code></p>
97<p class="firstline">Get token signing public key.</p>
98<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +000099 <code><a href="#getRecaptchaParam">getRecaptchaParam()</a></code></p>
100<p class="firstline">Get recaptcha secure param.</p>
101<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400102 <code><a href="#resetPassword">resetPassword(body)</a></code></p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700103<p class="firstline">Reset password for a user.</p>
John Asmuth614db982014-04-24 15:46:26 -0400104<p class="toc_element">
105 <code><a href="#setAccountInfo">setAccountInfo(body)</a></code></p>
106<p class="firstline">Set account info for a user.</p>
107<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700108 <code><a href="#setProjectConfig">setProjectConfig(body)</a></code></p>
109<p class="firstline">Set project configuration.</p>
110<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800111 <code><a href="#signOutUser">signOutUser(body)</a></code></p>
112<p class="firstline">Sign out user.</p>
113<p class="toc_element">
114 <code><a href="#signupNewUser">signupNewUser(body)</a></code></p>
115<p class="firstline">Signup new user.</p>
116<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400117 <code><a href="#uploadAccount">uploadAccount(body)</a></code></p>
118<p class="firstline">Batch upload existing user accounts.</p>
119<p class="toc_element">
120 <code><a href="#verifyAssertion">verifyAssertion(body)</a></code></p>
121<p class="firstline">Verifies the assertion returned by the IdP.</p>
122<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800123 <code><a href="#verifyCustomToken">verifyCustomToken(body)</a></code></p>
124<p class="firstline">Verifies the developer asserted ID token.</p>
125<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400126 <code><a href="#verifyPassword">verifyPassword(body)</a></code></p>
127<p class="firstline">Verifies the user entered password.</p>
128<h3>Method Details</h3>
129<div class="method">
130 <code class="details" id="createAuthUri">createAuthUri(body)</code>
131 <pre>Creates the URI used by the IdP to authenticate the user.
132
133Args:
134 body: object, The request body. (required)
135 The object takes the form of:
136
137{ # Request to get the IDP authentication URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700138 "sessionId": "A String", # The session_id passed by client.
139 "hostedDomain": "A String", # The hosted domain to restrict sign-in to accounts at that domain for Google Apps hosted accounts.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000140 "openidRealm": "A String", # Optional realm for OpenID protocol. The sub string "scheme://domain:port" of the param "continueUri" is used if this is not set.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000141 "oauthConsumerKey": "A String", # The developer's consumer key for OpenId OAuth Extension
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700142 "clientId": "A String", # The relying party OAuth client ID.
143 "oauthScope": "A String", # Additional oauth scopes, beyond the basid user profile, that the user would be prompted to grant
144 "otaApp": "A String", # The native app package for OTA installation.
145 "authFlowType": "A String", # Explicitly specify the auth flow type. Currently only support "CODE_FLOW" type. The field is only used for Google provider.
John Asmuth614db982014-04-24 15:46:26 -0400146 "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
147 "context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
148 "appId": "A String", # The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, BUNDLE_ID for iOS.
149 "continueUri": "A String", # The URI to which the IDP redirects the user after the federated login flow.
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700150 "customParameter": { # The query parameter that client can customize by themselves in auth url. The following parameters are reserved for server so that they cannot be customized by clients: client_id, response_type, scope, redirect_uri, state, oauth_token.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700151 "a_key": "A String", # The customized query parameter.
152 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000153 "identifier": "A String", # The email or federated ID of the user.
John Asmuth614db982014-04-24 15:46:26 -0400154 }
155
156
157Returns:
158 An object of the form:
159
160 { # Response of creating the IDP authentication URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800161 "sessionId": "A String", # Session ID which should be passed in the following verifyAssertion request.
John Asmuth614db982014-04-24 15:46:26 -0400162 "kind": "identitytoolkit#CreateAuthUriResponse", # The fixed string identitytoolkit#CreateAuthUriResponse".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700163 "captchaRequired": True or False, # True if captcha is required.
John Asmuth614db982014-04-24 15:46:26 -0400164 "registered": True or False, # Whether the user is registered if the identifier is an email.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800165 "allProviders": [ # all providers the user has once used to do federated login
166 "A String",
167 ],
Craig Citro065b5302014-08-14 00:47:23 -0700168 "forExistingProvider": True or False, # True if the authUri is for user's existing provider.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700169 "providerId": "A String", # The provider ID of the auth URI.
John Asmuth614db982014-04-24 15:46:26 -0400170 "authUri": "A String", # The URI used by the IDP to authenticate the user.
171 }</pre>
172</div>
173
174<div class="method">
175 <code class="details" id="deleteAccount">deleteAccount(body)</code>
176 <pre>Delete user account.
177
178Args:
179 body: object, The request body. (required)
180 The object takes the form of:
181
182{ # Request to delete account.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700183 "idToken": "A String", # The GITKit token or STS id token of the authenticated user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800184 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
John Asmuth614db982014-04-24 15:46:26 -0400185 "localId": "A String", # The local ID of the user.
186 }
187
188
189Returns:
190 An object of the form:
191
192 { # Respone of deleting account.
193 "kind": "identitytoolkit#DeleteAccountResponse", # The fixed string "identitytoolkit#DeleteAccountResponse".
194 }</pre>
195</div>
196
197<div class="method">
198 <code class="details" id="downloadAccount">downloadAccount(body)</code>
199 <pre>Batch download user accounts.
200
201Args:
202 body: object, The request body. (required)
203 The object takes the form of:
204
205{ # Request to download user account in batch.
206 "nextPageToken": "A String", # The token for the next page. This should be taken from the previous response.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800207 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
John Asmuth614db982014-04-24 15:46:26 -0400208 "maxResults": 42, # The max number of results to return in the response.
209 }
210
211
212Returns:
213 An object of the form:
214
215 { # Respone of downloading accounts in batch.
216 "nextPageToken": "A String", # The next page token. To be used in a subsequent request to return the next page of results.
217 "kind": "identitytoolkit#DownloadAccountResponse", # The fixed string "identitytoolkit#DownloadAccountResponse".
218 "users": [ # The user accounts data.
219 { # Template for an individual account info.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700220 "passwordHash": "A String", # The user's hashed password.
John Asmuth614db982014-04-24 15:46:26 -0400221 "displayName": "A String", # The name of the user.
222 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000223 "validSince": "A String", # Timestamp in seconds for valid login token.
John Asmuth614db982014-04-24 15:46:26 -0400224 "photoUrl": "A String", # The URL of the user profile photo.
225 "emailVerified": True or False, # Whether the email has been verified.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700226 "lastLoginAt": "A String", # last login timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700227 "customAuth": True or False, # Whether the user is authenticated by the developer.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000228 "disabled": True or False, # Whether the user is disabled.
John Asmuth614db982014-04-24 15:46:26 -0400229 "version": 42, # Version of the user's password.
230 "providerUserInfo": [ # The IDP of the user.
231 {
232 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400233 "displayName": "A String", # The user's display name at the IDP.
234 "photoUrl": "A String", # The user's photo url at the IDP.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700235 "rawUserInfo": "A String", # Raw IDP-returned user info.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700236 "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
237 "rawId": "A String", # User's raw identifier directly returned from IDP.
238 "email": "A String", # User's email at IDP.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700239 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400240 },
241 ],
242 "passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
243 "salt": "A String", # The user's password salt.
244 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700245 "createdAt": "A String", # User creation timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700246 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400247 },
248 ],
249 }</pre>
250</div>
251
252<div class="method">
253 <code class="details" id="getAccountInfo">getAccountInfo(body)</code>
254 <pre>Returns the account info.
255
256Args:
257 body: object, The request body. (required)
258 The object takes the form of:
259
260{ # Request to get the account information.
261 "idToken": "A String", # The GITKit token of the authenticated user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700262 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
John Asmuth614db982014-04-24 15:46:26 -0400263 "email": [ # The list of emails of the users to inquiry.
264 "A String",
265 ],
266 "localId": [ # The list of local ID's of the users to inquiry.
267 "A String",
268 ],
269 }
270
271
272Returns:
273 An object of the form:
274
275 { # Response of getting account information.
276 "kind": "identitytoolkit#GetAccountInfoResponse", # The fixed string "identitytoolkit#GetAccountInfoResponse".
277 "users": [ # The info of the users.
278 { # Template for an individual account info.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700279 "passwordHash": "A String", # The user's hashed password.
John Asmuth614db982014-04-24 15:46:26 -0400280 "displayName": "A String", # The name of the user.
281 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000282 "validSince": "A String", # Timestamp in seconds for valid login token.
John Asmuth614db982014-04-24 15:46:26 -0400283 "photoUrl": "A String", # The URL of the user profile photo.
284 "emailVerified": True or False, # Whether the email has been verified.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700285 "lastLoginAt": "A String", # last login timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700286 "customAuth": True or False, # Whether the user is authenticated by the developer.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000287 "disabled": True or False, # Whether the user is disabled.
John Asmuth614db982014-04-24 15:46:26 -0400288 "version": 42, # Version of the user's password.
289 "providerUserInfo": [ # The IDP of the user.
290 {
291 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400292 "displayName": "A String", # The user's display name at the IDP.
293 "photoUrl": "A String", # The user's photo url at the IDP.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700294 "rawUserInfo": "A String", # Raw IDP-returned user info.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700295 "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
296 "rawId": "A String", # User's raw identifier directly returned from IDP.
297 "email": "A String", # User's email at IDP.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700298 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400299 },
300 ],
301 "passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
302 "salt": "A String", # The user's password salt.
303 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700304 "createdAt": "A String", # User creation timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700305 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400306 },
307 ],
308 }</pre>
309</div>
310
311<div class="method">
312 <code class="details" id="getOobConfirmationCode">getOobConfirmationCode(body)</code>
313 <pre>Get a code for user action confirmation.
314
315Args:
316 body: object, The request body. (required)
317 The object takes the form of:
318
319{ # Request of getting a code for user confirmation (reset password, change email etc.)
320 "kind": "identitytoolkit#relyingparty", # The fixed string "identitytoolkit#relyingparty".
321 "requestType": "A String", # The request type.
322 "idToken": "A String", # The user's Gitkit login token for email change.
323 "challenge": "A String", # The recaptcha challenge presented to the user.
324 "newEmail": "A String", # The new email if the code is for email change.
325 "userIp": "A String", # The IP address of the user.
326 "email": "A String", # The email of the user.
327 "captchaResp": "A String", # The recaptcha response from the user.
328 }
329
330
331Returns:
332 An object of the form:
333
334 { # Response of getting a code for user confirmation (reset password, change email etc.).
335 "kind": "identitytoolkit#GetOobConfirmationCodeResponse", # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
336 "oobCode": "A String", # The code to be send to the user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800337 "email": "A String", # The email address that the email is sent to.
338 }</pre>
339</div>
340
341<div class="method">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700342 <code class="details" id="getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800343 <pre>Get project configuration.
344
345Args:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700346 delegatedProjectNumber: string, Delegated GCP project number of the request.
347 projectNumber: string, GCP project number of the request.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800348
349Returns:
350 An object of the form:
351
352 { # Response of getting the project configuration.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800353 "apiKey": "A String", # Browser API key, needed when making http request to Apiary.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700354 "useEmailSending": True or False, # Whether to use email sending provided by Firebear.
355 "projectId": "A String", # Project ID of the relying party.
356 "enableAnonymousUser": True or False, # Whether anonymous user is enabled.
357 "authorizedDomains": [ # Authorized domains.
358 "A String",
359 ],
360 "resetPasswordTemplate": { # Template for an email template. # Reset password email template.
361 "body": "A String", # Email body.
362 "fromDisplayName": "A String", # From display name.
363 "from": "A String", # From address of the email.
364 "format": "A String", # Email body format.
365 "replyTo": "A String", # Reply-to address.
366 "subject": "A String", # Subject of the email.
367 },
368 "legacyResetPasswordTemplate": { # Template for an email template. # Legacy reset password email template.
369 "body": "A String", # Email body.
370 "fromDisplayName": "A String", # From display name.
371 "from": "A String", # From address of the email.
372 "format": "A String", # Email body format.
373 "replyTo": "A String", # Reply-to address.
374 "subject": "A String", # Subject of the email.
375 },
376 "verifyEmailTemplate": { # Template for an email template. # Verify email template.
377 "body": "A String", # Email body.
378 "fromDisplayName": "A String", # From display name.
379 "from": "A String", # From address of the email.
380 "format": "A String", # Email body format.
381 "replyTo": "A String", # Reply-to address.
382 "subject": "A String", # Subject of the email.
383 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800384 "allowPasswordUser": True or False, # Whether to allow password user sign in or sign up.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700385 "changeEmailTemplate": { # Template for an email template. # Change email template.
386 "body": "A String", # Email body.
387 "fromDisplayName": "A String", # From display name.
388 "from": "A String", # From address of the email.
389 "format": "A String", # Email body format.
390 "replyTo": "A String", # Reply-to address.
391 "subject": "A String", # Subject of the email.
392 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800393 "idpConfig": [ # OAuth2 provider configuration.
394 { # Template for a single idp configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700395 "whitelistedAudiences": [ # Whitelisted client IDs for audience check.
396 "A String",
397 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800398 "enabled": True or False, # Whether this IDP is enabled.
399 "clientId": "A String", # OAuth2 client ID.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700400 "secret": "A String", # OAuth2 client secret.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800401 "provider": "A String", # OAuth2 provider.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700402 "experimentPercent": 42, # Percent of users who will be prompted/redirected federated login for this IDP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800403 },
404 ],
John Asmuth614db982014-04-24 15:46:26 -0400405 }</pre>
406</div>
407
408<div class="method">
409 <code class="details" id="getPublicKeys">getPublicKeys()</code>
410 <pre>Get token signing public key.
411
412Args:
413
414Returns:
415 An object of the form:
416
417 { # Respone of getting public keys.
418 "a_key": "A String",
419 }</pre>
420</div>
421
422<div class="method">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000423 <code class="details" id="getRecaptchaParam">getRecaptchaParam()</code>
424 <pre>Get recaptcha secure param.
425
426Args:
427
428Returns:
429 An object of the form:
430
431 { # Response of getting recaptcha param.
432 "kind": "identitytoolkit#GetRecaptchaParamResponse", # The fixed string "identitytoolkit#GetRecaptchaParamResponse".
433 "recaptchaSiteKey": "A String", # Site key registered at recaptcha.
434 "recaptchaStoken": "A String", # The stoken field for the recaptcha widget, used to request captcha challenge.
435 }</pre>
436</div>
437
438<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400439 <code class="details" id="resetPassword">resetPassword(body)</code>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700440 <pre>Reset password for a user.
John Asmuth614db982014-04-24 15:46:26 -0400441
442Args:
443 body: object, The request body. (required)
444 The object takes the form of:
445
446{ # Request to reset the password.
447 "newPassword": "A String", # The new password inputted by the user.
448 "oldPassword": "A String", # The old password inputted by the user.
449 "oobCode": "A String", # The confirmation code.
450 "email": "A String", # The email address of the user.
451 }
452
453
454Returns:
455 An object of the form:
456
457 { # Response of resetting the password.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700458 "requestType": "A String", # The request type.
John Asmuth614db982014-04-24 15:46:26 -0400459 "kind": "identitytoolkit#ResetPasswordResponse", # The fixed string "identitytoolkit#ResetPasswordResponse".
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700460 "email": "A String", # The user's email. If the out-of-band code is for email recovery, the user's original email.
461 "newEmail": "A String", # If the out-of-band code is for email recovery, the user's new email.
John Asmuth614db982014-04-24 15:46:26 -0400462 }</pre>
463</div>
464
465<div class="method">
466 <code class="details" id="setAccountInfo">setAccountInfo(body)</code>
467 <pre>Set account info for a user.
468
469Args:
470 body: object, The request body. (required)
471 The object takes the form of:
472
473{ # Request to set the account information.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800474 "instanceId": "A String", # Instance id token of the app.
475 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700476 "deleteAttribute": [ # The attributes users request to delete.
477 "A String",
478 ],
John Asmuth614db982014-04-24 15:46:26 -0400479 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000480 "validSince": "A String", # Timestamp in seconds for valid login token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800481 "photoUrl": "A String", # The photo url of the user.
John Asmuth614db982014-04-24 15:46:26 -0400482 "captchaResponse": "A String", # Response to the captcha.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000483 "emailVerified": True or False, # Mark the email as verified or not.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700484 "lastLoginAt": "A String", # Last login timestamp.
John Asmuth614db982014-04-24 15:46:26 -0400485 "provider": [ # The associated IDPs of the user.
486 "A String",
487 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000488 "disableUser": True or False, # Whether to disable the user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700489 "deleteProvider": [ # The IDPs the user request to delete.
490 "A String",
491 ],
John Asmuth614db982014-04-24 15:46:26 -0400492 "captchaChallenge": "A String", # The captcha challenge.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700493 "oobCode": "A String", # The out-of-band code of the change email request.
494 "upgradeToFederatedLogin": True or False, # Mark the user to upgrade to federated login.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000495 "idToken": "A String", # The GITKit token of the authenticated user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700496 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
497 "displayName": "A String", # The name of the user.
John Asmuth614db982014-04-24 15:46:26 -0400498 "password": "A String", # The new password of the user.
499 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700500 "createdAt": "A String", # The timestamp when the account is created.
John Asmuth614db982014-04-24 15:46:26 -0400501 }
502
503
504Returns:
505 An object of the form:
506
507 { # Respone of setting the account information.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700508 "expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
John Asmuth614db982014-04-24 15:46:26 -0400509 "kind": "identitytoolkit#SetAccountInfoResponse", # The fixed string "identitytoolkit#SetAccountInfoResponse".
510 "displayName": "A String", # The name of the user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700511 "localId": "A String", # The local ID of the user.
512 "photoUrl": "A String", # The photo url of the user.
513 "idToken": "A String", # The Gitkit id token to login the newly sign up user.
514 "passwordHash": "A String", # The user's hashed password.
515 "newEmail": "A String", # The new email the user attempts to change to.
516 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
John Asmuth614db982014-04-24 15:46:26 -0400517 "providerUserInfo": [ # The user's profiles at the associated IdPs.
518 {
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700519 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400520 "providerId": "A String", # The IdP ID. For whitelisted IdPs it's a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
521 "displayName": "A String", # The user's display name at the IDP.
522 "photoUrl": "A String", # The user's photo url at the IDP.
523 },
524 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800525 "email": "A String", # The email of the user.
526 }</pre>
527</div>
528
529<div class="method">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700530 <code class="details" id="setProjectConfig">setProjectConfig(body)</code>
531 <pre>Set project configuration.
532
533Args:
534 body: object, The request body. (required)
535 The object takes the form of:
536
537{ # Request to set the project configuration.
538 "apiKey": "A String", # Browser API key, needed when making http request to Apiary.
539 "useEmailSending": True or False, # Whether to use email sending provided by Firebear.
540 "verifyEmailTemplate": { # Template for an email template. # Verify email template.
541 "body": "A String", # Email body.
542 "fromDisplayName": "A String", # From display name.
543 "from": "A String", # From address of the email.
544 "format": "A String", # Email body format.
545 "replyTo": "A String", # Reply-to address.
546 "subject": "A String", # Subject of the email.
547 },
548 "enableAnonymousUser": True or False, # Whether to enable anonymous user.
549 "authorizedDomains": [ # Authorized domains for widget redirect.
550 "A String",
551 ],
552 "resetPasswordTemplate": { # Template for an email template. # Reset password email template.
553 "body": "A String", # Email body.
554 "fromDisplayName": "A String", # From display name.
555 "from": "A String", # From address of the email.
556 "format": "A String", # Email body format.
557 "replyTo": "A String", # Reply-to address.
558 "subject": "A String", # Subject of the email.
559 },
560 "legacyResetPasswordTemplate": { # Template for an email template. # Legacy reset password email template.
561 "body": "A String", # Email body.
562 "fromDisplayName": "A String", # From display name.
563 "from": "A String", # From address of the email.
564 "format": "A String", # Email body format.
565 "replyTo": "A String", # Reply-to address.
566 "subject": "A String", # Subject of the email.
567 },
568 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
569 "allowPasswordUser": True or False, # Whether to allow password user sign in or sign up.
570 "changeEmailTemplate": { # Template for an email template. # Change email template.
571 "body": "A String", # Email body.
572 "fromDisplayName": "A String", # From display name.
573 "from": "A String", # From address of the email.
574 "format": "A String", # Email body format.
575 "replyTo": "A String", # Reply-to address.
576 "subject": "A String", # Subject of the email.
577 },
578 "idpConfig": [ # Oauth2 provider configuration.
579 { # Template for a single idp configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700580 "whitelistedAudiences": [ # Whitelisted client IDs for audience check.
581 "A String",
582 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700583 "enabled": True or False, # Whether this IDP is enabled.
584 "clientId": "A String", # OAuth2 client ID.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700585 "secret": "A String", # OAuth2 client secret.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700586 "provider": "A String", # OAuth2 provider.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700587 "experimentPercent": 42, # Percent of users who will be prompted/redirected federated login for this IDP.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700588 },
589 ],
590 }
591
592
593Returns:
594 An object of the form:
595
596 { # Response of setting the project configuration.
597 "projectId": "A String", # Project ID of the relying party.
598 }</pre>
599</div>
600
601<div class="method">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800602 <code class="details" id="signOutUser">signOutUser(body)</code>
603 <pre>Sign out user.
604
605Args:
606 body: object, The request body. (required)
607 The object takes the form of:
608
609{ # Request to sign out user.
610 "instanceId": "A String", # Instance id token of the app.
611 "localId": "A String", # The local ID of the user.
612 }
613
614
615Returns:
616 An object of the form:
617
618 { # Response of signing out user.
619 "localId": "A String", # The local ID of the user.
620 }</pre>
621</div>
622
623<div class="method">
624 <code class="details" id="signupNewUser">signupNewUser(body)</code>
625 <pre>Signup new user.
626
627Args:
628 body: object, The request body. (required)
629 The object takes the form of:
630
631{ # Request to signup new user, create anonymous user or anonymous user reauth.
632 "instanceId": "A String", # Instance id token of the app.
633 "displayName": "A String", # The name of the user.
634 "captchaResponse": "A String", # Response to the captcha.
635 "idToken": "A String", # The GITKit token of the authenticated user.
636 "captchaChallenge": "A String", # The captcha challenge.
637 "password": "A String", # The new password of the user.
638 "email": "A String", # The email of the user.
639 }
640
641
642Returns:
643 An object of the form:
644
645 { # Response of signing up new user, creating anonymous user or anonymous user reauth.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700646 "expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800647 "kind": "identitytoolkit#SignupNewUserResponse", # The fixed string "identitytoolkit#SignupNewUserResponse".
648 "displayName": "A String", # The name of the user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700649 "localId": "A String", # The RP local ID of the user.
650 "idToken": "A String", # The Gitkit id token to login the newly sign up user.
651 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
Takashi Matsuo06694102015-09-11 13:55:40 -0700652 "email": "A String", # The email of the user.
John Asmuth614db982014-04-24 15:46:26 -0400653 }</pre>
654</div>
655
656<div class="method">
657 <code class="details" id="uploadAccount">uploadAccount(body)</code>
658 <pre>Batch upload existing user accounts.
659
660Args:
661 body: object, The request body. (required)
662 The object takes the form of:
663
664{ # Request to upload user account in batch.
Craig Citro065b5302014-08-14 00:47:23 -0700665 "hashAlgorithm": "A String", # The password hash algorithm.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800666 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
John Asmuth614db982014-04-24 15:46:26 -0400667 "users": [ # The account info to be stored.
668 { # Template for an individual account info.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700669 "passwordHash": "A String", # The user's hashed password.
John Asmuth614db982014-04-24 15:46:26 -0400670 "displayName": "A String", # The name of the user.
671 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000672 "validSince": "A String", # Timestamp in seconds for valid login token.
John Asmuth614db982014-04-24 15:46:26 -0400673 "photoUrl": "A String", # The URL of the user profile photo.
674 "emailVerified": True or False, # Whether the email has been verified.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700675 "lastLoginAt": "A String", # last login timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700676 "customAuth": True or False, # Whether the user is authenticated by the developer.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000677 "disabled": True or False, # Whether the user is disabled.
John Asmuth614db982014-04-24 15:46:26 -0400678 "version": 42, # Version of the user's password.
679 "providerUserInfo": [ # The IDP of the user.
680 {
681 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400682 "displayName": "A String", # The user's display name at the IDP.
683 "photoUrl": "A String", # The user's photo url at the IDP.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700684 "rawUserInfo": "A String", # Raw IDP-returned user info.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700685 "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
686 "rawId": "A String", # User's raw identifier directly returned from IDP.
687 "email": "A String", # User's email at IDP.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700688 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400689 },
690 ],
691 "passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
692 "salt": "A String", # The user's password salt.
693 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700694 "createdAt": "A String", # User creation timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700695 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400696 },
697 ],
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700698 "sanityCheck": True or False, # If true, backend will do sanity check(including duplicate email and federated id) when uploading account.
Craig Citro065b5302014-08-14 00:47:23 -0700699 "signerKey": "A String", # The key for to hash the password.
700 "memoryCost": 42, # Memory cost for hash calculation. Used by scrypt similar algorithms.
701 "saltSeparator": "A String", # The salt separator.
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700702 "targetProjectId": "A String", # Specify which project (field value is actually project id) to operate. Only used when provided credential.
Craig Citro065b5302014-08-14 00:47:23 -0700703 "rounds": 42, # Rounds for hash calculation. Used by scrypt and similar algorithms.
John Asmuth614db982014-04-24 15:46:26 -0400704 }
705
706
707Returns:
708 An object of the form:
709
710 { # Respone of uploading accounts in batch.
711 "kind": "identitytoolkit#UploadAccountResponse", # The fixed string "identitytoolkit#UploadAccountResponse".
712 "error": [ # The error encountered while processing the account info.
713 {
714 "index": 42, # The index of the malformed account, starting from 0.
715 "message": "A String", # Detailed error message for the account info.
716 },
717 ],
718 }</pre>
719</div>
720
721<div class="method">
722 <code class="details" id="verifyAssertion">verifyAssertion(body)</code>
723 <pre>Verifies the assertion returned by the IdP.
724
725Args:
726 body: object, The request body. (required)
727 The object takes the form of:
728
729{ # Request to verify the IDP assertion.
John Asmuth614db982014-04-24 15:46:26 -0400730 "postBody": "A String", # The post body if the request is a HTTP POST.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800731 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
732 "instanceId": "A String", # Instance id token of the app.
733 "idToken": "A String", # The GITKit token of the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400734 "pendingIdToken": "A String", # The GITKit token for the non-trusted IDP pending to be confirmed by the user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800735 "sessionId": "A String", # Session ID, which should match the one in previous createAuthUri request.
736 "requestUri": "A String", # The URI to which the IDP redirects the user back. It may contain federated login result params added by the IDP.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700737 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800738 "returnRefreshToken": True or False, # Whether to return refresh tokens.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700739 "returnIdpCredential": True or False, # Whether return 200 and IDP credential rather than throw exception when federated id is already linked.
John Asmuth614db982014-04-24 15:46:26 -0400740 }
741
742
743Returns:
744 An object of the form:
745
746 { # Response of verifying the IDP assertion.
747 "federatedId": "A String", # The unique ID identifies the IdP account.
748 "localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
749 "photoUrl": "A String", # The URI of the public accessible profiel picture.
750 "inputEmail": "A String", # It's the identifier param in the createAuthUri request if the identifier is an email. It can be used to check whether the user input email is different from the asserted email.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700751 "rawUserInfo": "A String", # Raw IDP-returned user info.
John Asmuth614db982014-04-24 15:46:26 -0400752 "appScheme": "A String", # The custom scheme used by mobile app.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700753 "expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
754 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
John Asmuth614db982014-04-24 15:46:26 -0400755 "verifiedProvider": [ # When action is 'map', contains the idps which can be used for confirmation.
756 "A String",
757 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800758 "needEmail": True or False, # Whether need client to supply email to complete the federated login flow.
John Asmuth614db982014-04-24 15:46:26 -0400759 "dateOfBirth": "A String", # The birth date of the IdP account.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700760 "oauthAccessToken": "A String", # The OAuth2 access token.
761 "emailRecycled": True or False, # It's true if the email is recycled.
John Asmuth614db982014-04-24 15:46:26 -0400762 "email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700763 "screenName": "A String", # The screen_name of a Twitter user or the login name at Github.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700764 "nickName": "A String", # The nick name of the user.
765 "errorMessage": "A String", # Client error code.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700766 "oauthTokenSecret": "A String", # The OAuth1 access token secret.
John Asmuth614db982014-04-24 15:46:26 -0400767 "language": "A String", # The language preference of the user.
768 "needConfirmation": True or False, # Whether the assertion is from a non-trusted IDP and need account linking confirmation.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700769 "oauthIdToken": "A String", # The OIDC id token.
John Asmuth614db982014-04-24 15:46:26 -0400770 "fullName": "A String", # The full name of the user.
771 "kind": "identitytoolkit#VerifyAssertionResponse", # The fixed string "identitytoolkit#VerifyAssertionResponse".
John Asmuth614db982014-04-24 15:46:26 -0400772 "displayName": "A String", # The display name of the user.
773 "appInstallationUrl": "A String", # URL for OTA app installation.
774 "firstName": "A String", # The first name of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000775 "oauthExpireIn": 42, # The lifetime in seconds of the OAuth2 access token.
John Asmuth614db982014-04-24 15:46:26 -0400776 "emailVerified": True or False, # The value is true if the IDP is also the email provider. It means the user owns the email.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700777 "lastName": "A String", # The last name of the user.
John Asmuth614db982014-04-24 15:46:26 -0400778 "oauthScope": "A String", # The scope for the OpenID OAuth extension.
779 "oauthRequestToken": "A String", # The user approved request token for the OpenID OAuth extension.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000780 "oauthAuthorizationCode": "A String", # The OAuth2 authorization code.
John Asmuth614db982014-04-24 15:46:26 -0400781 "originalEmail": "A String", # The original email stored in the mapping storage. It's returned when the federated ID is associated to a different email.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800782 "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID OP identifer other than the whilte listed IdPs the OP identifier is returned. If the "identifier" param is federated ID in the createAuthUri request. The domain part of the federated ID is returned.
John Asmuth614db982014-04-24 15:46:26 -0400783 "context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700784 "idToken": "A String", # The ID token.
John Asmuth614db982014-04-24 15:46:26 -0400785 "action": "A String", # The action code.
786 "timeZone": "A String", # The timezone of the user.
John Asmuth614db982014-04-24 15:46:26 -0400787 }</pre>
788</div>
789
790<div class="method">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800791 <code class="details" id="verifyCustomToken">verifyCustomToken(body)</code>
792 <pre>Verifies the developer asserted ID token.
793
794Args:
795 body: object, The request body. (required)
796 The object takes the form of:
797
798{ # Request to verify a custom token
799 "instanceId": "A String", # Instance id token of the app.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700800 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800801 "token": "A String", # The custom token to verify
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700802 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800803 }
804
805
806Returns:
807 An object of the form:
808
809 { # Response from verifying a custom token
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700810 "expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800811 "idToken": "A String", # The GITKit token for authenticated user.
812 "kind": "identitytoolkit#VerifyCustomTokenResponse", # The fixed string "identitytoolkit#VerifyCustomTokenResponse".
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700813 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800814 }</pre>
815</div>
816
817<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400818 <code class="details" id="verifyPassword">verifyPassword(body)</code>
819 <pre>Verifies the user entered password.
820
821Args:
822 body: object, The request body. (required)
823 The object takes the form of:
824
825{ # Request to verify the password.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800826 "instanceId": "A String", # Instance id token of the app.
827 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
John Asmuth614db982014-04-24 15:46:26 -0400828 "captchaResponse": "A String", # Response to the captcha.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800829 "idToken": "A String", # The GITKit token of the authenticated user.
830 "pendingIdToken": "A String", # The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
John Asmuth614db982014-04-24 15:46:26 -0400831 "captchaChallenge": "A String", # The captcha challenge.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700832 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
John Asmuth614db982014-04-24 15:46:26 -0400833 "password": "A String", # The password inputed by the user.
834 "email": "A String", # The email of the user.
John Asmuth614db982014-04-24 15:46:26 -0400835 }
836
837
838Returns:
839 An object of the form:
840
841 { # Request of verifying the password.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700842 "expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
John Asmuth614db982014-04-24 15:46:26 -0400843 "kind": "identitytoolkit#VerifyPasswordResponse", # The fixed string "identitytoolkit#VerifyPasswordResponse".
844 "displayName": "A String", # The name of the user.
845 "localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
Takashi Matsuo06694102015-09-11 13:55:40 -0700846 "oauthAccessToken": "A String", # The OAuth2 access token.
John Asmuth614db982014-04-24 15:46:26 -0400847 "photoUrl": "A String", # The URI of the user's photo at IdP
Takashi Matsuo06694102015-09-11 13:55:40 -0700848 "oauthExpireIn": 42, # The lifetime in seconds of the OAuth2 access token.
John Asmuth614db982014-04-24 15:46:26 -0400849 "idToken": "A String", # The GITKit token for authenticated user.
850 "registered": True or False, # Whether the email is registered.
Takashi Matsuo06694102015-09-11 13:55:40 -0700851 "oauthAuthorizationCode": "A String", # The OAuth2 authorization code.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700852 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
John Asmuth614db982014-04-24 15:46:26 -0400853 "email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
854 }</pre>
855</div>
856
857</body></html>