1<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="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#createAuthUri">createAuthUri(body=None)</a></code></p>
82<p class="firstline">Creates the URI used by the IdP to authenticate the user.</p>
83<p class="toc_element">
84  <code><a href="#deleteAccount">deleteAccount(body=None)</a></code></p>
85<p class="firstline">Delete user account.</p>
86<p class="toc_element">
87  <code><a href="#downloadAccount">downloadAccount(body=None)</a></code></p>
88<p class="firstline">Batch download user accounts.</p>
89<p class="toc_element">
90  <code><a href="#downloadAccount_next">downloadAccount_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#emailLinkSignin">emailLinkSignin(body=None)</a></code></p>
94<p class="firstline">Reset password for a user.</p>
95<p class="toc_element">
96  <code><a href="#getAccountInfo">getAccountInfo(body=None)</a></code></p>
97<p class="firstline">Returns the account info.</p>
98<p class="toc_element">
99  <code><a href="#getOobConfirmationCode">getOobConfirmationCode(body=None)</a></code></p>
100<p class="firstline">Get a code for user action confirmation.</p>
101<p class="toc_element">
102  <code><a href="#getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</a></code></p>
103<p class="firstline">Get project configuration.</p>
104<p class="toc_element">
105  <code><a href="#getPublicKeys">getPublicKeys()</a></code></p>
106<p class="firstline">Get token signing public key.</p>
107<p class="toc_element">
108  <code><a href="#getRecaptchaParam">getRecaptchaParam()</a></code></p>
109<p class="firstline">Get recaptcha secure param.</p>
110<p class="toc_element">
111  <code><a href="#resetPassword">resetPassword(body=None)</a></code></p>
112<p class="firstline">Reset password for a user.</p>
113<p class="toc_element">
114  <code><a href="#sendVerificationCode">sendVerificationCode(body=None)</a></code></p>
115<p class="firstline">Send SMS verification code.</p>
116<p class="toc_element">
117  <code><a href="#setAccountInfo">setAccountInfo(body=None)</a></code></p>
118<p class="firstline">Set account info for a user.</p>
119<p class="toc_element">
120  <code><a href="#setProjectConfig">setProjectConfig(body=None)</a></code></p>
121<p class="firstline">Set project configuration.</p>
122<p class="toc_element">
123  <code><a href="#signOutUser">signOutUser(body=None)</a></code></p>
124<p class="firstline">Sign out user.</p>
125<p class="toc_element">
126  <code><a href="#signupNewUser">signupNewUser(body=None)</a></code></p>
127<p class="firstline">Signup new user.</p>
128<p class="toc_element">
129  <code><a href="#uploadAccount">uploadAccount(body=None)</a></code></p>
130<p class="firstline">Batch upload existing user accounts.</p>
131<p class="toc_element">
132  <code><a href="#verifyAssertion">verifyAssertion(body=None)</a></code></p>
133<p class="firstline">Verifies the assertion returned by the IdP.</p>
134<p class="toc_element">
135  <code><a href="#verifyCustomToken">verifyCustomToken(body=None)</a></code></p>
136<p class="firstline">Verifies the developer asserted ID token.</p>
137<p class="toc_element">
138  <code><a href="#verifyPassword">verifyPassword(body=None)</a></code></p>
139<p class="firstline">Verifies the user entered password.</p>
140<p class="toc_element">
141  <code><a href="#verifyPhoneNumber">verifyPhoneNumber(body=None)</a></code></p>
142<p class="firstline">Verifies ownership of a phone number and creates/updates the user account accordingly.</p>
143<h3>Method Details</h3>
144<div class="method">
145    <code class="details" id="close">close()</code>
146  <pre>Close httplib2 connections.</pre>
147</div>
148
149<div class="method">
150    <code class="details" id="createAuthUri">createAuthUri(body=None)</code>
151  <pre>Creates the URI used by the IdP to authenticate the user.
152
153Args:
154  body: object, The request body.
155    The object takes the form of:
156
157{ # Request to get the IDP authentication URL.
158  &quot;appId&quot;: &quot;A String&quot;, # The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, BUNDLE_ID for iOS.
159  &quot;authFlowType&quot;: &quot;A String&quot;, # Explicitly specify the auth flow type. Currently only support &quot;CODE_FLOW&quot; type. The field is only used for Google provider.
160  &quot;clientId&quot;: &quot;A String&quot;, # The relying party OAuth client ID.
161  &quot;context&quot;: &quot;A String&quot;, # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
162  &quot;continueUri&quot;: &quot;A String&quot;, # The URI to which the IDP redirects the user after the federated login flow.
163  &quot;customParameter&quot;: { # 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.
164    &quot;a_key&quot;: &quot;A String&quot;, # The customized query parameter.
165  },
166  &quot;hostedDomain&quot;: &quot;A String&quot;, # The hosted domain to restrict sign-in to accounts at that domain for Google Apps hosted accounts.
167  &quot;identifier&quot;: &quot;A String&quot;, # The email or federated ID of the user.
168  &quot;oauthConsumerKey&quot;: &quot;A String&quot;, # The developer&#x27;s consumer key for OpenId OAuth Extension
169  &quot;oauthScope&quot;: &quot;A String&quot;, # Additional oauth scopes, beyond the basid user profile, that the user would be prompted to grant
170  &quot;openidRealm&quot;: &quot;A String&quot;, # Optional realm for OpenID protocol. The sub string &quot;scheme://domain:port&quot; of the param &quot;continueUri&quot; is used if this is not set.
171  &quot;otaApp&quot;: &quot;A String&quot;, # The native app package for OTA installation.
172  &quot;providerId&quot;: &quot;A String&quot;, # The IdP ID. For white listed IdPs it&#x27;s a short domain name e.g. google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it&#x27;s the OP identifier.
173  &quot;sessionId&quot;: &quot;A String&quot;, # The session_id passed by client.
174  &quot;tenantId&quot;: &quot;A String&quot;, # For multi-tenant use cases, in order to construct sign-in URL with the correct IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs from.
175  &quot;tenantProjectNumber&quot;: &quot;A String&quot;, # Tenant project number to be used for idp discovery.
176}
177
178
179Returns:
180  An object of the form:
181
182    { # Response of creating the IDP authentication URL.
183  &quot;allProviders&quot;: [ # all providers the user has once used to do federated login
184    &quot;A String&quot;,
185  ],
186  &quot;authUri&quot;: &quot;A String&quot;, # The URI used by the IDP to authenticate the user.
187  &quot;captchaRequired&quot;: True or False, # True if captcha is required.
188  &quot;forExistingProvider&quot;: True or False, # True if the authUri is for user&#x27;s existing provider.
189  &quot;kind&quot;: &quot;identitytoolkit#CreateAuthUriResponse&quot;, # The fixed string identitytoolkit#CreateAuthUriResponse&quot;.
190  &quot;providerId&quot;: &quot;A String&quot;, # The provider ID of the auth URI.
191  &quot;registered&quot;: True or False, # Whether the user is registered if the identifier is an email.
192  &quot;sessionId&quot;: &quot;A String&quot;, # Session ID which should be passed in the following verifyAssertion request.
193  &quot;signinMethods&quot;: [ # All sign-in methods this user has used.
194    &quot;A String&quot;,
195  ],
196}</pre>
197</div>
198
199<div class="method">
200    <code class="details" id="deleteAccount">deleteAccount(body=None)</code>
201  <pre>Delete user account.
202
203Args:
204  body: object, The request body.
205    The object takes the form of:
206
207{ # Request to delete account.
208  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
209  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token or STS id token of the authenticated user.
210  &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
211}
212
213
214Returns:
215  An object of the form:
216
217    { # Respone of deleting account.
218  &quot;kind&quot;: &quot;identitytoolkit#DeleteAccountResponse&quot;, # The fixed string &quot;identitytoolkit#DeleteAccountResponse&quot;.
219}</pre>
220</div>
221
222<div class="method">
223    <code class="details" id="downloadAccount">downloadAccount(body=None)</code>
224  <pre>Batch download user accounts.
225
226Args:
227  body: object, The request body.
228    The object takes the form of:
229
230{ # Request to download user account in batch.
231  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
232  &quot;maxResults&quot;: 42, # The max number of results to return in the response.
233  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the next page. This should be taken from the previous response.
234  &quot;targetProjectId&quot;: &quot;A String&quot;, # Specify which project (field value is actually project id) to operate. Only used when provided credential.
235}
236
237
238Returns:
239  An object of the form:
240
241    { # Response of downloading accounts in batch.
242  &quot;kind&quot;: &quot;identitytoolkit#DownloadAccountResponse&quot;, # The fixed string &quot;identitytoolkit#DownloadAccountResponse&quot;.
243  &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token. To be used in a subsequent request to return the next page of results.
244  &quot;users&quot;: [ # The user accounts data.
245    { # Template for an individual account info.
246      &quot;createdAt&quot;: &quot;A String&quot;, # User creation timestamp.
247      &quot;customAttributes&quot;: &quot;A String&quot;, # The custom attributes to be set in the user&#x27;s id token.
248      &quot;customAuth&quot;: True or False, # Whether the user is authenticated by the developer.
249      &quot;disabled&quot;: True or False, # Whether the user is disabled.
250      &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
251      &quot;email&quot;: &quot;A String&quot;, # The email of the user.
252      &quot;emailVerified&quot;: True or False, # Whether the email has been verified.
253      &quot;lastLoginAt&quot;: &quot;A String&quot;, # last login timestamp.
254      &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
255      &quot;passwordHash&quot;: &quot;A String&quot;, # The user&#x27;s hashed password.
256      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp when the password was last updated.
257      &quot;phoneNumber&quot;: &quot;A String&quot;, # User&#x27;s phone number.
258      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the user profile photo.
259      &quot;providerUserInfo&quot;: [ # The IDP of the user.
260        {
261          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the IDP.
262          &quot;email&quot;: &quot;A String&quot;, # User&#x27;s email at IDP.
263          &quot;federatedId&quot;: &quot;A String&quot;, # User&#x27;s identifier at IDP.
264          &quot;phoneNumber&quot;: &quot;A String&quot;, # User&#x27;s phone number.
265          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s photo url at the IDP.
266          &quot;providerId&quot;: &quot;A String&quot;, # The IdP ID. For white listed IdPs it&#x27;s a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it&#x27;s the OP identifier.
267          &quot;rawId&quot;: &quot;A String&quot;, # User&#x27;s raw identifier directly returned from IDP.
268          &quot;screenName&quot;: &quot;A String&quot;, # User&#x27;s screen name at Twitter or login name at Github.
269        },
270      ],
271      &quot;rawPassword&quot;: &quot;A String&quot;, # The user&#x27;s plain text password.
272      &quot;salt&quot;: &quot;A String&quot;, # The user&#x27;s password salt.
273      &quot;screenName&quot;: &quot;A String&quot;, # User&#x27;s screen name at Twitter or login name at Github.
274      &quot;validSince&quot;: &quot;A String&quot;, # Timestamp in seconds for valid login token.
275      &quot;version&quot;: 42, # Version of the user&#x27;s password.
276    },
277  ],
278}</pre>
279</div>
280
281<div class="method">
282    <code class="details" id="downloadAccount_next">downloadAccount_next(previous_request, previous_response)</code>
283  <pre>Retrieves the next page of results.
284
285Args:
286  previous_request: The request for the previous page. (required)
287  previous_response: The response from the request for the previous page. (required)
288
289Returns:
290  A request object that you can call &#x27;execute()&#x27; on to request the next
291  page. Returns None if there are no more items in the collection.
292    </pre>
293</div>
294
295<div class="method">
296    <code class="details" id="emailLinkSignin">emailLinkSignin(body=None)</code>
297  <pre>Reset password for a user.
298
299Args:
300  body: object, The request body.
301    The object takes the form of:
302
303{ # Request to sign in with email.
304  &quot;email&quot;: &quot;A String&quot;, # The email address of the user.
305  &quot;idToken&quot;: &quot;A String&quot;, # Token for linking flow.
306  &quot;oobCode&quot;: &quot;A String&quot;, # The confirmation code.
307}
308
309
310Returns:
311  An object of the form:
312
313    { # Response of email signIn.
314  &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email.
315  &quot;expiresIn&quot;: &quot;A String&quot;, # Expiration time of STS id token in seconds.
316  &quot;idToken&quot;: &quot;A String&quot;, # The STS id token to login the newly signed in user.
317  &quot;isNewUser&quot;: True or False, # Whether the user is new.
318  &quot;kind&quot;: &quot;identitytoolkit#EmailLinkSigninResponse&quot;, # The fixed string &quot;identitytoolkit#EmailLinkSigninResponse&quot;.
319  &quot;localId&quot;: &quot;A String&quot;, # The RP local ID of the user.
320  &quot;refreshToken&quot;: &quot;A String&quot;, # The refresh token for the signed in user.
321}</pre>
322</div>
323
324<div class="method">
325    <code class="details" id="getAccountInfo">getAccountInfo(body=None)</code>
326  <pre>Returns the account info.
327
328Args:
329  body: object, The request body.
330    The object takes the form of:
331
332{ # Request to get the account information.
333  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
334  &quot;email&quot;: [ # The list of emails of the users to inquiry.
335    &quot;A String&quot;,
336  ],
337  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token of the authenticated user.
338  &quot;localId&quot;: [ # The list of local ID&#x27;s of the users to inquiry.
339    &quot;A String&quot;,
340  ],
341  &quot;phoneNumber&quot;: [ # Privileged caller can query users by specified phone number.
342    &quot;A String&quot;,
343  ],
344}
345
346
347Returns:
348  An object of the form:
349
350    { # Response of getting account information.
351  &quot;kind&quot;: &quot;identitytoolkit#GetAccountInfoResponse&quot;, # The fixed string &quot;identitytoolkit#GetAccountInfoResponse&quot;.
352  &quot;users&quot;: [ # The info of the users.
353    { # Template for an individual account info.
354      &quot;createdAt&quot;: &quot;A String&quot;, # User creation timestamp.
355      &quot;customAttributes&quot;: &quot;A String&quot;, # The custom attributes to be set in the user&#x27;s id token.
356      &quot;customAuth&quot;: True or False, # Whether the user is authenticated by the developer.
357      &quot;disabled&quot;: True or False, # Whether the user is disabled.
358      &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
359      &quot;email&quot;: &quot;A String&quot;, # The email of the user.
360      &quot;emailVerified&quot;: True or False, # Whether the email has been verified.
361      &quot;lastLoginAt&quot;: &quot;A String&quot;, # last login timestamp.
362      &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
363      &quot;passwordHash&quot;: &quot;A String&quot;, # The user&#x27;s hashed password.
364      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp when the password was last updated.
365      &quot;phoneNumber&quot;: &quot;A String&quot;, # User&#x27;s phone number.
366      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the user profile photo.
367      &quot;providerUserInfo&quot;: [ # The IDP of the user.
368        {
369          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the IDP.
370          &quot;email&quot;: &quot;A String&quot;, # User&#x27;s email at IDP.
371          &quot;federatedId&quot;: &quot;A String&quot;, # User&#x27;s identifier at IDP.
372          &quot;phoneNumber&quot;: &quot;A String&quot;, # User&#x27;s phone number.
373          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s photo url at the IDP.
374          &quot;providerId&quot;: &quot;A String&quot;, # The IdP ID. For white listed IdPs it&#x27;s a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it&#x27;s the OP identifier.
375          &quot;rawId&quot;: &quot;A String&quot;, # User&#x27;s raw identifier directly returned from IDP.
376          &quot;screenName&quot;: &quot;A String&quot;, # User&#x27;s screen name at Twitter or login name at Github.
377        },
378      ],
379      &quot;rawPassword&quot;: &quot;A String&quot;, # The user&#x27;s plain text password.
380      &quot;salt&quot;: &quot;A String&quot;, # The user&#x27;s password salt.
381      &quot;screenName&quot;: &quot;A String&quot;, # User&#x27;s screen name at Twitter or login name at Github.
382      &quot;validSince&quot;: &quot;A String&quot;, # Timestamp in seconds for valid login token.
383      &quot;version&quot;: 42, # Version of the user&#x27;s password.
384    },
385  ],
386}</pre>
387</div>
388
389<div class="method">
390    <code class="details" id="getOobConfirmationCode">getOobConfirmationCode(body=None)</code>
391  <pre>Get a code for user action confirmation.
392
393Args:
394  body: object, The request body.
395    The object takes the form of:
396
397{ # Request of getting a code for user confirmation (reset password, change email etc.)
398  &quot;androidInstallApp&quot;: True or False, # whether or not to install the android app on the device where the link is opened
399  &quot;androidMinimumVersion&quot;: &quot;A String&quot;, # minimum version of the app. if the version on the device is lower than this version then the user is taken to the play store to upgrade the app
400  &quot;androidPackageName&quot;: &quot;A String&quot;, # android package name of the android app to handle the action code
401  &quot;canHandleCodeInApp&quot;: True or False, # whether or not the app can handle the oob code without first going to web
402  &quot;captchaResp&quot;: &quot;A String&quot;, # The recaptcha response from the user.
403  &quot;challenge&quot;: &quot;A String&quot;, # The recaptcha challenge presented to the user.
404  &quot;continueUrl&quot;: &quot;A String&quot;, # The url to continue to the Gitkit app
405  &quot;email&quot;: &quot;A String&quot;, # The email of the user.
406  &quot;iOSAppStoreId&quot;: &quot;A String&quot;, # iOS app store id to download the app if it&#x27;s not already installed
407  &quot;iOSBundleId&quot;: &quot;A String&quot;, # the iOS bundle id of iOS app to handle the action code
408  &quot;idToken&quot;: &quot;A String&quot;, # The user&#x27;s Gitkit login token for email change.
409  &quot;kind&quot;: &quot;identitytoolkit#relyingparty&quot;, # The fixed string &quot;identitytoolkit#relyingparty&quot;.
410  &quot;newEmail&quot;: &quot;A String&quot;, # The new email if the code is for email change.
411  &quot;requestType&quot;: &quot;A String&quot;, # The request type.
412  &quot;userIp&quot;: &quot;A String&quot;, # The IP address of the user.
413}
414
415
416Returns:
417  An object of the form:
418
419    { # Response of getting a code for user confirmation (reset password, change email etc.).
420  &quot;email&quot;: &quot;A String&quot;, # The email address that the email is sent to.
421  &quot;kind&quot;: &quot;identitytoolkit#GetOobConfirmationCodeResponse&quot;, # The fixed string &quot;identitytoolkit#GetOobConfirmationCodeResponse&quot;.
422  &quot;oobCode&quot;: &quot;A String&quot;, # The code to be send to the user.
423}</pre>
424</div>
425
426<div class="method">
427    <code class="details" id="getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</code>
428  <pre>Get project configuration.
429
430Args:
431  delegatedProjectNumber: string, Delegated GCP project number of the request.
432  projectNumber: string, GCP project number of the request.
433
434Returns:
435  An object of the form:
436
437    { # Response of getting the project configuration.
438  &quot;allowPasswordUser&quot;: True or False, # Whether to allow password user sign in or sign up.
439  &quot;apiKey&quot;: &quot;A String&quot;, # Browser API key, needed when making http request to Apiary.
440  &quot;authorizedDomains&quot;: [ # Authorized domains.
441    &quot;A String&quot;,
442  ],
443  &quot;changeEmailTemplate&quot;: { # Template for an email template. # Change email template.
444    &quot;body&quot;: &quot;A String&quot;, # Email body.
445    &quot;format&quot;: &quot;A String&quot;, # Email body format.
446    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
447    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
448    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
449    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
450  },
451  &quot;dynamicLinksDomain&quot;: &quot;A String&quot;,
452  &quot;enableAnonymousUser&quot;: True or False, # Whether anonymous user is enabled.
453  &quot;idpConfig&quot;: [ # OAuth2 provider configuration.
454    { # Template for a single idp configuration.
455      &quot;clientId&quot;: &quot;A String&quot;, # OAuth2 client ID.
456      &quot;enabled&quot;: True or False, # Whether this IDP is enabled.
457      &quot;experimentPercent&quot;: 42, # Percent of users who will be prompted/redirected federated login for this IDP.
458      &quot;provider&quot;: &quot;A String&quot;, # OAuth2 provider.
459      &quot;secret&quot;: &quot;A String&quot;, # OAuth2 client secret.
460      &quot;whitelistedAudiences&quot;: [ # Whitelisted client IDs for audience check.
461        &quot;A String&quot;,
462      ],
463    },
464  ],
465  &quot;legacyResetPasswordTemplate&quot;: { # Template for an email template. # Legacy reset password email template.
466    &quot;body&quot;: &quot;A String&quot;, # Email body.
467    &quot;format&quot;: &quot;A String&quot;, # Email body format.
468    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
469    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
470    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
471    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
472  },
473  &quot;projectId&quot;: &quot;A String&quot;, # Project ID of the relying party.
474  &quot;resetPasswordTemplate&quot;: { # Template for an email template. # Reset password email template.
475    &quot;body&quot;: &quot;A String&quot;, # Email body.
476    &quot;format&quot;: &quot;A String&quot;, # Email body format.
477    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
478    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
479    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
480    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
481  },
482  &quot;useEmailSending&quot;: True or False, # Whether to use email sending provided by Firebear.
483  &quot;verifyEmailTemplate&quot;: { # Template for an email template. # Verify email template.
484    &quot;body&quot;: &quot;A String&quot;, # Email body.
485    &quot;format&quot;: &quot;A String&quot;, # Email body format.
486    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
487    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
488    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
489    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
490  },
491}</pre>
492</div>
493
494<div class="method">
495    <code class="details" id="getPublicKeys">getPublicKeys()</code>
496  <pre>Get token signing public key.
497
498Args:
499
500Returns:
501  An object of the form:
502
503    { # Respone of getting public keys.
504  &quot;a_key&quot;: &quot;A String&quot;,
505}</pre>
506</div>
507
508<div class="method">
509    <code class="details" id="getRecaptchaParam">getRecaptchaParam()</code>
510  <pre>Get recaptcha secure param.
511
512Args:
513
514Returns:
515  An object of the form:
516
517    { # Response of getting recaptcha param.
518  &quot;kind&quot;: &quot;identitytoolkit#GetRecaptchaParamResponse&quot;, # The fixed string &quot;identitytoolkit#GetRecaptchaParamResponse&quot;.
519  &quot;recaptchaSiteKey&quot;: &quot;A String&quot;, # Site key registered at recaptcha.
520  &quot;recaptchaStoken&quot;: &quot;A String&quot;, # The stoken field for the recaptcha widget, used to request captcha challenge.
521}</pre>
522</div>
523
524<div class="method">
525    <code class="details" id="resetPassword">resetPassword(body=None)</code>
526  <pre>Reset password for a user.
527
528Args:
529  body: object, The request body.
530    The object takes the form of:
531
532{ # Request to reset the password.
533  &quot;email&quot;: &quot;A String&quot;, # The email address of the user.
534  &quot;newPassword&quot;: &quot;A String&quot;, # The new password inputted by the user.
535  &quot;oldPassword&quot;: &quot;A String&quot;, # The old password inputted by the user.
536  &quot;oobCode&quot;: &quot;A String&quot;, # The confirmation code.
537}
538
539
540Returns:
541  An object of the form:
542
543    { # Response of resetting the password.
544  &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email. If the out-of-band code is for email recovery, the user&#x27;s original email.
545  &quot;kind&quot;: &quot;identitytoolkit#ResetPasswordResponse&quot;, # The fixed string &quot;identitytoolkit#ResetPasswordResponse&quot;.
546  &quot;newEmail&quot;: &quot;A String&quot;, # If the out-of-band code is for email recovery, the user&#x27;s new email.
547  &quot;requestType&quot;: &quot;A String&quot;, # The request type.
548}</pre>
549</div>
550
551<div class="method">
552    <code class="details" id="sendVerificationCode">sendVerificationCode(body=None)</code>
553  <pre>Send SMS verification code.
554
555Args:
556  body: object, The request body.
557    The object takes the form of:
558
559{ # Request for Identitytoolkit-SendVerificationCode
560  &quot;iosReceipt&quot;: &quot;A String&quot;, # Receipt of successful app token validation with APNS.
561  &quot;iosSecret&quot;: &quot;A String&quot;, # Secret delivered to iOS app via APNS.
562  &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number to send the verification code to in E.164 format.
563  &quot;recaptchaToken&quot;: &quot;A String&quot;, # Recaptcha solution.
564}
565
566
567Returns:
568  An object of the form:
569
570    { # Response for Identitytoolkit-SendVerificationCode
571  &quot;sessionInfo&quot;: &quot;A String&quot;, # Encrypted session information
572}</pre>
573</div>
574
575<div class="method">
576    <code class="details" id="setAccountInfo">setAccountInfo(body=None)</code>
577  <pre>Set account info for a user.
578
579Args:
580  body: object, The request body.
581    The object takes the form of:
582
583{ # Request to set the account information.
584  &quot;captchaChallenge&quot;: &quot;A String&quot;, # The captcha challenge.
585  &quot;captchaResponse&quot;: &quot;A String&quot;, # Response to the captcha.
586  &quot;createdAt&quot;: &quot;A String&quot;, # The timestamp when the account is created.
587  &quot;customAttributes&quot;: &quot;A String&quot;, # The custom attributes to be set in the user&#x27;s id token.
588  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
589  &quot;deleteAttribute&quot;: [ # The attributes users request to delete.
590    &quot;A String&quot;,
591  ],
592  &quot;deleteProvider&quot;: [ # The IDPs the user request to delete.
593    &quot;A String&quot;,
594  ],
595  &quot;disableUser&quot;: True or False, # Whether to disable the user.
596  &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
597  &quot;email&quot;: &quot;A String&quot;, # The email of the user.
598  &quot;emailVerified&quot;: True or False, # Mark the email as verified or not.
599  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token of the authenticated user.
600  &quot;instanceId&quot;: &quot;A String&quot;, # Instance id token of the app.
601  &quot;lastLoginAt&quot;: &quot;A String&quot;, # Last login timestamp.
602  &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
603  &quot;oobCode&quot;: &quot;A String&quot;, # The out-of-band code of the change email request.
604  &quot;password&quot;: &quot;A String&quot;, # The new password of the user.
605  &quot;phoneNumber&quot;: &quot;A String&quot;, # Privileged caller can update user with specified phone number.
606  &quot;photoUrl&quot;: &quot;A String&quot;, # The photo url of the user.
607  &quot;provider&quot;: [ # The associated IDPs of the user.
608    &quot;A String&quot;,
609  ],
610  &quot;returnSecureToken&quot;: True or False, # Whether return sts id token and refresh token instead of gitkit token.
611  &quot;upgradeToFederatedLogin&quot;: True or False, # Mark the user to upgrade to federated login.
612  &quot;validSince&quot;: &quot;A String&quot;, # Timestamp in seconds for valid login token.
613}
614
615
616Returns:
617  An object of the form:
618
619    { # Respone of setting the account information.
620  &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
621  &quot;email&quot;: &quot;A String&quot;, # The email of the user.
622  &quot;emailVerified&quot;: True or False, # If email has been verified.
623  &quot;expiresIn&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
624  &quot;idToken&quot;: &quot;A String&quot;, # The Gitkit id token to login the newly sign up user.
625  &quot;kind&quot;: &quot;identitytoolkit#SetAccountInfoResponse&quot;, # The fixed string &quot;identitytoolkit#SetAccountInfoResponse&quot;.
626  &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
627  &quot;newEmail&quot;: &quot;A String&quot;, # The new email the user attempts to change to.
628  &quot;passwordHash&quot;: &quot;A String&quot;, # The user&#x27;s hashed password.
629  &quot;photoUrl&quot;: &quot;A String&quot;, # The photo url of the user.
630  &quot;providerUserInfo&quot;: [ # The user&#x27;s profiles at the associated IdPs.
631    {
632      &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the IDP.
633      &quot;federatedId&quot;: &quot;A String&quot;, # User&#x27;s identifier at IDP.
634      &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s photo url at the IDP.
635      &quot;providerId&quot;: &quot;A String&quot;, # The IdP ID. For whitelisted IdPs it&#x27;s a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it&#x27;s the OP identifier.
636    },
637  ],
638  &quot;refreshToken&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be refresh token.
639}</pre>
640</div>
641
642<div class="method">
643    <code class="details" id="setProjectConfig">setProjectConfig(body=None)</code>
644  <pre>Set project configuration.
645
646Args:
647  body: object, The request body.
648    The object takes the form of:
649
650{ # Request to set the project configuration.
651  &quot;allowPasswordUser&quot;: True or False, # Whether to allow password user sign in or sign up.
652  &quot;apiKey&quot;: &quot;A String&quot;, # Browser API key, needed when making http request to Apiary.
653  &quot;authorizedDomains&quot;: [ # Authorized domains for widget redirect.
654    &quot;A String&quot;,
655  ],
656  &quot;changeEmailTemplate&quot;: { # Template for an email template. # Change email template.
657    &quot;body&quot;: &quot;A String&quot;, # Email body.
658    &quot;format&quot;: &quot;A String&quot;, # Email body format.
659    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
660    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
661    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
662    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
663  },
664  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
665  &quot;enableAnonymousUser&quot;: True or False, # Whether to enable anonymous user.
666  &quot;idpConfig&quot;: [ # Oauth2 provider configuration.
667    { # Template for a single idp configuration.
668      &quot;clientId&quot;: &quot;A String&quot;, # OAuth2 client ID.
669      &quot;enabled&quot;: True or False, # Whether this IDP is enabled.
670      &quot;experimentPercent&quot;: 42, # Percent of users who will be prompted/redirected federated login for this IDP.
671      &quot;provider&quot;: &quot;A String&quot;, # OAuth2 provider.
672      &quot;secret&quot;: &quot;A String&quot;, # OAuth2 client secret.
673      &quot;whitelistedAudiences&quot;: [ # Whitelisted client IDs for audience check.
674        &quot;A String&quot;,
675      ],
676    },
677  ],
678  &quot;legacyResetPasswordTemplate&quot;: { # Template for an email template. # Legacy reset password email template.
679    &quot;body&quot;: &quot;A String&quot;, # Email body.
680    &quot;format&quot;: &quot;A String&quot;, # Email body format.
681    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
682    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
683    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
684    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
685  },
686  &quot;resetPasswordTemplate&quot;: { # Template for an email template. # Reset password email template.
687    &quot;body&quot;: &quot;A String&quot;, # Email body.
688    &quot;format&quot;: &quot;A String&quot;, # Email body format.
689    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
690    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
691    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
692    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
693  },
694  &quot;useEmailSending&quot;: True or False, # Whether to use email sending provided by Firebear.
695  &quot;verifyEmailTemplate&quot;: { # Template for an email template. # Verify email template.
696    &quot;body&quot;: &quot;A String&quot;, # Email body.
697    &quot;format&quot;: &quot;A String&quot;, # Email body format.
698    &quot;from&quot;: &quot;A String&quot;, # From address of the email.
699    &quot;fromDisplayName&quot;: &quot;A String&quot;, # From display name.
700    &quot;replyTo&quot;: &quot;A String&quot;, # Reply-to address.
701    &quot;subject&quot;: &quot;A String&quot;, # Subject of the email.
702  },
703}
704
705
706Returns:
707  An object of the form:
708
709    { # Response of setting the project configuration.
710  &quot;projectId&quot;: &quot;A String&quot;, # Project ID of the relying party.
711}</pre>
712</div>
713
714<div class="method">
715    <code class="details" id="signOutUser">signOutUser(body=None)</code>
716  <pre>Sign out user.
717
718Args:
719  body: object, The request body.
720    The object takes the form of:
721
722{ # Request to sign out user.
723  &quot;instanceId&quot;: &quot;A String&quot;, # Instance id token of the app.
724  &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
725}
726
727
728Returns:
729  An object of the form:
730
731    { # Response of signing out user.
732  &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
733}</pre>
734</div>
735
736<div class="method">
737    <code class="details" id="signupNewUser">signupNewUser(body=None)</code>
738  <pre>Signup new user.
739
740Args:
741  body: object, The request body.
742    The object takes the form of:
743
744{ # Request to signup new user, create anonymous user or anonymous user reauth.
745  &quot;captchaChallenge&quot;: &quot;A String&quot;, # The captcha challenge.
746  &quot;captchaResponse&quot;: &quot;A String&quot;, # Response to the captcha.
747  &quot;disabled&quot;: True or False, # Whether to disable the user. Only can be used by service account.
748  &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
749  &quot;email&quot;: &quot;A String&quot;, # The email of the user.
750  &quot;emailVerified&quot;: True or False, # Mark the email as verified or not. Only can be used by service account.
751  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token of the authenticated user.
752  &quot;instanceId&quot;: &quot;A String&quot;, # Instance id token of the app.
753  &quot;localId&quot;: &quot;A String&quot;, # Privileged caller can create user with specified user id.
754  &quot;password&quot;: &quot;A String&quot;, # The new password of the user.
755  &quot;phoneNumber&quot;: &quot;A String&quot;, # Privileged caller can create user with specified phone number.
756  &quot;photoUrl&quot;: &quot;A String&quot;, # The photo url of the user.
757  &quot;tenantId&quot;: &quot;A String&quot;, # For multi-tenant use cases, in order to construct sign-in URL with the correct IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs from.
758  &quot;tenantProjectNumber&quot;: &quot;A String&quot;, # Tenant project number to be used for idp discovery.
759}
760
761
762Returns:
763  An object of the form:
764
765    { # Response of signing up new user, creating anonymous user or anonymous user reauth.
766  &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
767  &quot;email&quot;: &quot;A String&quot;, # The email of the user.
768  &quot;expiresIn&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
769  &quot;idToken&quot;: &quot;A String&quot;, # The Gitkit id token to login the newly sign up user.
770  &quot;kind&quot;: &quot;identitytoolkit#SignupNewUserResponse&quot;, # The fixed string &quot;identitytoolkit#SignupNewUserResponse&quot;.
771  &quot;localId&quot;: &quot;A String&quot;, # The RP local ID of the user.
772  &quot;refreshToken&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be refresh token.
773}</pre>
774</div>
775
776<div class="method">
777    <code class="details" id="uploadAccount">uploadAccount(body=None)</code>
778  <pre>Batch upload existing user accounts.
779
780Args:
781  body: object, The request body.
782    The object takes the form of:
783
784{ # Request to upload user account in batch.
785  &quot;allowOverwrite&quot;: True or False, # Whether allow overwrite existing account when user local_id exists.
786  &quot;blockSize&quot;: 42,
787  &quot;cpuMemCost&quot;: 42, # The following 4 fields are for standard scrypt algorithm.
788  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
789  &quot;dkLen&quot;: 42,
790  &quot;hashAlgorithm&quot;: &quot;A String&quot;, # The password hash algorithm.
791  &quot;memoryCost&quot;: 42, # Memory cost for hash calculation. Used by scrypt similar algorithms.
792  &quot;parallelization&quot;: 42,
793  &quot;rounds&quot;: 42, # Rounds for hash calculation. Used by scrypt and similar algorithms.
794  &quot;saltSeparator&quot;: &quot;A String&quot;, # The salt separator.
795  &quot;sanityCheck&quot;: True or False, # If true, backend will do sanity check(including duplicate email and federated id) when uploading account.
796  &quot;signerKey&quot;: &quot;A String&quot;, # The key for to hash the password.
797  &quot;targetProjectId&quot;: &quot;A String&quot;, # Specify which project (field value is actually project id) to operate. Only used when provided credential.
798  &quot;users&quot;: [ # The account info to be stored.
799    { # Template for an individual account info.
800      &quot;createdAt&quot;: &quot;A String&quot;, # User creation timestamp.
801      &quot;customAttributes&quot;: &quot;A String&quot;, # The custom attributes to be set in the user&#x27;s id token.
802      &quot;customAuth&quot;: True or False, # Whether the user is authenticated by the developer.
803      &quot;disabled&quot;: True or False, # Whether the user is disabled.
804      &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
805      &quot;email&quot;: &quot;A String&quot;, # The email of the user.
806      &quot;emailVerified&quot;: True or False, # Whether the email has been verified.
807      &quot;lastLoginAt&quot;: &quot;A String&quot;, # last login timestamp.
808      &quot;localId&quot;: &quot;A String&quot;, # The local ID of the user.
809      &quot;passwordHash&quot;: &quot;A String&quot;, # The user&#x27;s hashed password.
810      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp when the password was last updated.
811      &quot;phoneNumber&quot;: &quot;A String&quot;, # User&#x27;s phone number.
812      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the user profile photo.
813      &quot;providerUserInfo&quot;: [ # The IDP of the user.
814        {
815          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the IDP.
816          &quot;email&quot;: &quot;A String&quot;, # User&#x27;s email at IDP.
817          &quot;federatedId&quot;: &quot;A String&quot;, # User&#x27;s identifier at IDP.
818          &quot;phoneNumber&quot;: &quot;A String&quot;, # User&#x27;s phone number.
819          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s photo url at the IDP.
820          &quot;providerId&quot;: &quot;A String&quot;, # The IdP ID. For white listed IdPs it&#x27;s a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it&#x27;s the OP identifier.
821          &quot;rawId&quot;: &quot;A String&quot;, # User&#x27;s raw identifier directly returned from IDP.
822          &quot;screenName&quot;: &quot;A String&quot;, # User&#x27;s screen name at Twitter or login name at Github.
823        },
824      ],
825      &quot;rawPassword&quot;: &quot;A String&quot;, # The user&#x27;s plain text password.
826      &quot;salt&quot;: &quot;A String&quot;, # The user&#x27;s password salt.
827      &quot;screenName&quot;: &quot;A String&quot;, # User&#x27;s screen name at Twitter or login name at Github.
828      &quot;validSince&quot;: &quot;A String&quot;, # Timestamp in seconds for valid login token.
829      &quot;version&quot;: 42, # Version of the user&#x27;s password.
830    },
831  ],
832}
833
834
835Returns:
836  An object of the form:
837
838    { # Respone of uploading accounts in batch.
839  &quot;error&quot;: [ # The error encountered while processing the account info.
840    {
841      &quot;index&quot;: 42, # The index of the malformed account, starting from 0.
842      &quot;message&quot;: &quot;A String&quot;, # Detailed error message for the account info.
843    },
844  ],
845  &quot;kind&quot;: &quot;identitytoolkit#UploadAccountResponse&quot;, # The fixed string &quot;identitytoolkit#UploadAccountResponse&quot;.
846}</pre>
847</div>
848
849<div class="method">
850    <code class="details" id="verifyAssertion">verifyAssertion(body=None)</code>
851  <pre>Verifies the assertion returned by the IdP.
852
853Args:
854  body: object, The request body.
855    The object takes the form of:
856
857{ # Request to verify the IDP assertion.
858  &quot;autoCreate&quot;: True or False, # When it&#x27;s true, automatically creates a new account if the user doesn&#x27;t exist. When it&#x27;s false, allows existing user to sign in normally and throws exception if the user doesn&#x27;t exist.
859  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
860  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token of the authenticated user.
861  &quot;instanceId&quot;: &quot;A String&quot;, # Instance id token of the app.
862  &quot;pendingIdToken&quot;: &quot;A String&quot;, # The GITKit token for the non-trusted IDP pending to be confirmed by the user.
863  &quot;postBody&quot;: &quot;A String&quot;, # The post body if the request is a HTTP POST.
864  &quot;requestUri&quot;: &quot;A String&quot;, # The URI to which the IDP redirects the user back. It may contain federated login result params added by the IDP.
865  &quot;returnIdpCredential&quot;: True or False, # Whether return 200 and IDP credential rather than throw exception when federated id is already linked.
866  &quot;returnRefreshToken&quot;: True or False, # Whether to return refresh tokens.
867  &quot;returnSecureToken&quot;: True or False, # Whether return sts id token and refresh token instead of gitkit token.
868  &quot;sessionId&quot;: &quot;A String&quot;, # Session ID, which should match the one in previous createAuthUri request.
869  &quot;tenantId&quot;: &quot;A String&quot;, # For multi-tenant use cases, in order to construct sign-in URL with the correct IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs from.
870  &quot;tenantProjectNumber&quot;: &quot;A String&quot;, # Tenant project number to be used for idp discovery.
871}
872
873
874Returns:
875  An object of the form:
876
877    { # Response of verifying the IDP assertion.
878  &quot;action&quot;: &quot;A String&quot;, # The action code.
879  &quot;appInstallationUrl&quot;: &quot;A String&quot;, # URL for OTA app installation.
880  &quot;appScheme&quot;: &quot;A String&quot;, # The custom scheme used by mobile app.
881  &quot;context&quot;: &quot;A String&quot;, # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
882  &quot;dateOfBirth&quot;: &quot;A String&quot;, # The birth date of the IdP account.
883  &quot;displayName&quot;: &quot;A String&quot;, # The display name of the user.
884  &quot;email&quot;: &quot;A String&quot;, # The email returned by the IdP. NOTE: The federated login user may not own the email.
885  &quot;emailRecycled&quot;: True or False, # It&#x27;s true if the email is recycled.
886  &quot;emailVerified&quot;: True or False, # The value is true if the IDP is also the email provider. It means the user owns the email.
887  &quot;errorMessage&quot;: &quot;A String&quot;, # Client error code.
888  &quot;expiresIn&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
889  &quot;federatedId&quot;: &quot;A String&quot;, # The unique ID identifies the IdP account.
890  &quot;firstName&quot;: &quot;A String&quot;, # The first name of the user.
891  &quot;fullName&quot;: &quot;A String&quot;, # The full name of the user.
892  &quot;idToken&quot;: &quot;A String&quot;, # The ID token.
893  &quot;inputEmail&quot;: &quot;A String&quot;, # It&#x27;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.
894  &quot;isNewUser&quot;: True or False, # True if it&#x27;s a new user sign-in, false if it&#x27;s a returning user.
895  &quot;kind&quot;: &quot;identitytoolkit#VerifyAssertionResponse&quot;, # The fixed string &quot;identitytoolkit#VerifyAssertionResponse&quot;.
896  &quot;language&quot;: &quot;A String&quot;, # The language preference of the user.
897  &quot;lastName&quot;: &quot;A String&quot;, # The last name of the user.
898  &quot;localId&quot;: &quot;A String&quot;, # The RP local ID if it&#x27;s already been mapped to the IdP account identified by the federated ID.
899  &quot;needConfirmation&quot;: True or False, # Whether the assertion is from a non-trusted IDP and need account linking confirmation.
900  &quot;needEmail&quot;: True or False, # Whether need client to supply email to complete the federated login flow.
901  &quot;nickName&quot;: &quot;A String&quot;, # The nick name of the user.
902  &quot;oauthAccessToken&quot;: &quot;A String&quot;, # The OAuth2 access token.
903  &quot;oauthAuthorizationCode&quot;: &quot;A String&quot;, # The OAuth2 authorization code.
904  &quot;oauthExpireIn&quot;: 42, # The lifetime in seconds of the OAuth2 access token.
905  &quot;oauthIdToken&quot;: &quot;A String&quot;, # The OIDC id token.
906  &quot;oauthRequestToken&quot;: &quot;A String&quot;, # The user approved request token for the OpenID OAuth extension.
907  &quot;oauthScope&quot;: &quot;A String&quot;, # The scope for the OpenID OAuth extension.
908  &quot;oauthTokenSecret&quot;: &quot;A String&quot;, # The OAuth1 access token secret.
909  &quot;originalEmail&quot;: &quot;A String&quot;, # The original email stored in the mapping storage. It&#x27;s returned when the federated ID is associated to a different email.
910  &quot;photoUrl&quot;: &quot;A String&quot;, # The URI of the public accessible profiel picture.
911  &quot;providerId&quot;: &quot;A String&quot;, # The IdP ID. For white listed IdPs it&#x27;s a short domain name e.g. google.com, aol.com, live.net and yahoo.com. If the &quot;providerId&quot; param is set to OpenID OP identifer other than the whilte listed IdPs the OP identifier is returned. If the &quot;identifier&quot; param is federated ID in the createAuthUri request. The domain part of the federated ID is returned.
912  &quot;rawUserInfo&quot;: &quot;A String&quot;, # Raw IDP-returned user info.
913  &quot;refreshToken&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be refresh token.
914  &quot;screenName&quot;: &quot;A String&quot;, # The screen_name of a Twitter user or the login name at Github.
915  &quot;timeZone&quot;: &quot;A String&quot;, # The timezone of the user.
916  &quot;verifiedProvider&quot;: [ # When action is &#x27;map&#x27;, contains the idps which can be used for confirmation.
917    &quot;A String&quot;,
918  ],
919}</pre>
920</div>
921
922<div class="method">
923    <code class="details" id="verifyCustomToken">verifyCustomToken(body=None)</code>
924  <pre>Verifies the developer asserted ID token.
925
926Args:
927  body: object, The request body.
928    The object takes the form of:
929
930{ # Request to verify a custom token
931  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
932  &quot;instanceId&quot;: &quot;A String&quot;, # Instance id token of the app.
933  &quot;returnSecureToken&quot;: True or False, # Whether return sts id token and refresh token instead of gitkit token.
934  &quot;token&quot;: &quot;A String&quot;, # The custom token to verify
935}
936
937
938Returns:
939  An object of the form:
940
941    { # Response from verifying a custom token
942  &quot;expiresIn&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
943  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token for authenticated user.
944  &quot;isNewUser&quot;: True or False, # True if it&#x27;s a new user sign-in, false if it&#x27;s a returning user.
945  &quot;kind&quot;: &quot;identitytoolkit#VerifyCustomTokenResponse&quot;, # The fixed string &quot;identitytoolkit#VerifyCustomTokenResponse&quot;.
946  &quot;refreshToken&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be refresh token.
947}</pre>
948</div>
949
950<div class="method">
951    <code class="details" id="verifyPassword">verifyPassword(body=None)</code>
952  <pre>Verifies the user entered password.
953
954Args:
955  body: object, The request body.
956    The object takes the form of:
957
958{ # Request to verify the password.
959  &quot;captchaChallenge&quot;: &quot;A String&quot;, # The captcha challenge.
960  &quot;captchaResponse&quot;: &quot;A String&quot;, # Response to the captcha.
961  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;, # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
962  &quot;email&quot;: &quot;A String&quot;, # The email of the user.
963  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token of the authenticated user.
964  &quot;instanceId&quot;: &quot;A String&quot;, # Instance id token of the app.
965  &quot;password&quot;: &quot;A String&quot;, # The password inputed by the user.
966  &quot;pendingIdToken&quot;: &quot;A String&quot;, # The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
967  &quot;returnSecureToken&quot;: True or False, # Whether return sts id token and refresh token instead of gitkit token.
968  &quot;tenantId&quot;: &quot;A String&quot;, # For multi-tenant use cases, in order to construct sign-in URL with the correct IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs from.
969  &quot;tenantProjectNumber&quot;: &quot;A String&quot;, # Tenant project number to be used for idp discovery.
970}
971
972
973Returns:
974  An object of the form:
975
976    { # Request of verifying the password.
977  &quot;displayName&quot;: &quot;A String&quot;, # The name of the user.
978  &quot;email&quot;: &quot;A String&quot;, # The email returned by the IdP. NOTE: The federated login user may not own the email.
979  &quot;expiresIn&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
980  &quot;idToken&quot;: &quot;A String&quot;, # The GITKit token for authenticated user.
981  &quot;kind&quot;: &quot;identitytoolkit#VerifyPasswordResponse&quot;, # The fixed string &quot;identitytoolkit#VerifyPasswordResponse&quot;.
982  &quot;localId&quot;: &quot;A String&quot;, # The RP local ID if it&#x27;s already been mapped to the IdP account identified by the federated ID.
983  &quot;oauthAccessToken&quot;: &quot;A String&quot;, # The OAuth2 access token.
984  &quot;oauthAuthorizationCode&quot;: &quot;A String&quot;, # The OAuth2 authorization code.
985  &quot;oauthExpireIn&quot;: 42, # The lifetime in seconds of the OAuth2 access token.
986  &quot;photoUrl&quot;: &quot;A String&quot;, # The URI of the user&#x27;s photo at IdP
987  &quot;refreshToken&quot;: &quot;A String&quot;, # If idToken is STS id token, then this field will be refresh token.
988  &quot;registered&quot;: True or False, # Whether the email is registered.
989}</pre>
990</div>
991
992<div class="method">
993    <code class="details" id="verifyPhoneNumber">verifyPhoneNumber(body=None)</code>
994  <pre>Verifies ownership of a phone number and creates/updates the user account accordingly.
995
996Args:
997  body: object, The request body.
998    The object takes the form of:
999
1000{ # Request for Identitytoolkit-VerifyPhoneNumber
1001  &quot;code&quot;: &quot;A String&quot;,
1002  &quot;idToken&quot;: &quot;A String&quot;,
1003  &quot;operation&quot;: &quot;A String&quot;,
1004  &quot;phoneNumber&quot;: &quot;A String&quot;,
1005  &quot;sessionInfo&quot;: &quot;A String&quot;, # The session info previously returned by IdentityToolkit-SendVerificationCode.
1006  &quot;temporaryProof&quot;: &quot;A String&quot;,
1007  &quot;verificationProof&quot;: &quot;A String&quot;,
1008}
1009
1010
1011Returns:
1012  An object of the form:
1013
1014    { # Response for Identitytoolkit-VerifyPhoneNumber
1015  &quot;expiresIn&quot;: &quot;A String&quot;,
1016  &quot;idToken&quot;: &quot;A String&quot;,
1017  &quot;isNewUser&quot;: True or False,
1018  &quot;localId&quot;: &quot;A String&quot;,
1019  &quot;phoneNumber&quot;: &quot;A String&quot;,
1020  &quot;refreshToken&quot;: &quot;A String&quot;,
1021  &quot;temporaryProof&quot;: &quot;A String&quot;,
1022  &quot;temporaryProofExpiresIn&quot;: &quot;A String&quot;,
1023  &quot;verificationProof&quot;: &quot;A String&quot;,
1024  &quot;verificationProofExpiresIn&quot;: &quot;A String&quot;,
1025}</pre>
1026</div>
1027
1028</body></html>