blob: bd432829ad5ec8b6a7bca674a4d232649170a912 [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">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087 <code><a href="#downloadAccount_next">downloadAccount_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040090 <code><a href="#getAccountInfo">getAccountInfo(body)</a></code></p>
91<p class="firstline">Returns the account info.</p>
92<p class="toc_element">
93 <code><a href="#getOobConfirmationCode">getOobConfirmationCode(body)</a></code></p>
94<p class="firstline">Get a code for user action confirmation.</p>
95<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070096 <code><a href="#getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080097<p class="firstline">Get project configuration.</p>
98<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040099 <code><a href="#getPublicKeys">getPublicKeys()</a></code></p>
100<p class="firstline">Get token signing public key.</p>
101<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000102 <code><a href="#getRecaptchaParam">getRecaptchaParam()</a></code></p>
103<p class="firstline">Get recaptcha secure param.</p>
104<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400105 <code><a href="#resetPassword">resetPassword(body)</a></code></p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700106<p class="firstline">Reset password for a user.</p>
John Asmuth614db982014-04-24 15:46:26 -0400107<p class="toc_element">
108 <code><a href="#setAccountInfo">setAccountInfo(body)</a></code></p>
109<p class="firstline">Set account info for a user.</p>
110<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700111 <code><a href="#setProjectConfig">setProjectConfig(body)</a></code></p>
112<p class="firstline">Set project configuration.</p>
113<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800114 <code><a href="#signOutUser">signOutUser(body)</a></code></p>
115<p class="firstline">Sign out user.</p>
116<p class="toc_element">
117 <code><a href="#signupNewUser">signupNewUser(body)</a></code></p>
118<p class="firstline">Signup new user.</p>
119<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400120 <code><a href="#uploadAccount">uploadAccount(body)</a></code></p>
121<p class="firstline">Batch upload existing user accounts.</p>
122<p class="toc_element">
123 <code><a href="#verifyAssertion">verifyAssertion(body)</a></code></p>
124<p class="firstline">Verifies the assertion returned by the IdP.</p>
125<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800126 <code><a href="#verifyCustomToken">verifyCustomToken(body)</a></code></p>
127<p class="firstline">Verifies the developer asserted ID token.</p>
128<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400129 <code><a href="#verifyPassword">verifyPassword(body)</a></code></p>
130<p class="firstline">Verifies the user entered password.</p>
131<h3>Method Details</h3>
132<div class="method">
133 <code class="details" id="createAuthUri">createAuthUri(body)</code>
134 <pre>Creates the URI used by the IdP to authenticate the user.
135
136Args:
137 body: object, The request body. (required)
138 The object takes the form of:
139
140{ # Request to get the IDP authentication URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700141 "sessionId": "A String", # The session_id passed by client.
142 "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 +0000143 "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 +0000144 "oauthConsumerKey": "A String", # The developer's consumer key for OpenId OAuth Extension
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700145 "clientId": "A String", # The relying party OAuth client ID.
146 "oauthScope": "A String", # Additional oauth scopes, beyond the basid user profile, that the user would be prompted to grant
147 "otaApp": "A String", # The native app package for OTA installation.
148 "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 -0400149 "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.
150 "context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
151 "appId": "A String", # The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, BUNDLE_ID for iOS.
152 "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 -0700153 "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 -0700154 "a_key": "A String", # The customized query parameter.
155 },
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000156 "identifier": "A String", # The email or federated ID of the user.
John Asmuth614db982014-04-24 15:46:26 -0400157 }
158
159
160Returns:
161 An object of the form:
162
163 { # Response of creating the IDP authentication URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800164 "sessionId": "A String", # Session ID which should be passed in the following verifyAssertion request.
John Asmuth614db982014-04-24 15:46:26 -0400165 "kind": "identitytoolkit#CreateAuthUriResponse", # The fixed string identitytoolkit#CreateAuthUriResponse".
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700166 "captchaRequired": True or False, # True if captcha is required.
John Asmuth614db982014-04-24 15:46:26 -0400167 "registered": True or False, # Whether the user is registered if the identifier is an email.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800168 "allProviders": [ # all providers the user has once used to do federated login
169 "A String",
170 ],
Craig Citro065b5302014-08-14 00:47:23 -0700171 "forExistingProvider": True or False, # True if the authUri is for user's existing provider.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700172 "providerId": "A String", # The provider ID of the auth URI.
John Asmuth614db982014-04-24 15:46:26 -0400173 "authUri": "A String", # The URI used by the IDP to authenticate the user.
174 }</pre>
175</div>
176
177<div class="method">
178 <code class="details" id="deleteAccount">deleteAccount(body)</code>
179 <pre>Delete user account.
180
181Args:
182 body: object, The request body. (required)
183 The object takes the form of:
184
185{ # Request to delete account.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700186 "idToken": "A String", # The GITKit token or STS id token of the authenticated user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800187 "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 -0400188 "localId": "A String", # The local ID of the user.
189 }
190
191
192Returns:
193 An object of the form:
194
195 { # Respone of deleting account.
196 "kind": "identitytoolkit#DeleteAccountResponse", # The fixed string "identitytoolkit#DeleteAccountResponse".
197 }</pre>
198</div>
199
200<div class="method">
201 <code class="details" id="downloadAccount">downloadAccount(body)</code>
202 <pre>Batch download user accounts.
203
204Args:
205 body: object, The request body. (required)
206 The object takes the form of:
207
208{ # Request to download user account in batch.
209 "nextPageToken": "A String", # The token for the next page. This should be taken from the previous response.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800210 "targetProjectId": "A String", # Specify which project (field value is actually project id) to operate. Only used when provided credential.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800211 "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 -0400212 "maxResults": 42, # The max number of results to return in the response.
213 }
214
215
216Returns:
217 An object of the form:
218
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400219 { # Response of downloading accounts in batch.
John Asmuth614db982014-04-24 15:46:26 -0400220 "nextPageToken": "A String", # The next page token. To be used in a subsequent request to return the next page of results.
221 "kind": "identitytoolkit#DownloadAccountResponse", # The fixed string "identitytoolkit#DownloadAccountResponse".
222 "users": [ # The user accounts data.
223 { # Template for an individual account info.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800224 "rawPassword": "A String", # The user's plain text password.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700225 "passwordHash": "A String", # The user's hashed password.
John Asmuth614db982014-04-24 15:46:26 -0400226 "displayName": "A String", # The name of the user.
227 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000228 "validSince": "A String", # Timestamp in seconds for valid login token.
John Asmuth614db982014-04-24 15:46:26 -0400229 "photoUrl": "A String", # The URL of the user profile photo.
230 "emailVerified": True or False, # Whether the email has been verified.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700231 "lastLoginAt": "A String", # last login timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700232 "customAuth": True or False, # Whether the user is authenticated by the developer.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000233 "disabled": True or False, # Whether the user is disabled.
John Asmuth614db982014-04-24 15:46:26 -0400234 "version": 42, # Version of the user's password.
235 "providerUserInfo": [ # The IDP of the user.
236 {
237 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400238 "displayName": "A String", # The user's display name at the IDP.
239 "photoUrl": "A String", # The user's photo url at the IDP.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700240 "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.
241 "rawId": "A String", # User's raw identifier directly returned from IDP.
242 "email": "A String", # User's email at IDP.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700243 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400244 },
245 ],
246 "passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
247 "salt": "A String", # The user's password salt.
248 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700249 "createdAt": "A String", # User creation timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700250 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400251 },
252 ],
253 }</pre>
254</div>
255
256<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400257 <code class="details" id="downloadAccount_next">downloadAccount_next(previous_request, previous_response)</code>
258 <pre>Retrieves the next page of results.
259
260Args:
261 previous_request: The request for the previous page. (required)
262 previous_response: The response from the request for the previous page. (required)
263
264Returns:
265 A request object that you can call 'execute()' on to request the next
266 page. Returns None if there are no more items in the collection.
267 </pre>
268</div>
269
270<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400271 <code class="details" id="getAccountInfo">getAccountInfo(body)</code>
272 <pre>Returns the account info.
273
274Args:
275 body: object, The request body. (required)
276 The object takes the form of:
277
278{ # Request to get the account information.
279 "idToken": "A String", # The GITKit token of the authenticated user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700280 "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 -0400281 "email": [ # The list of emails of the users to inquiry.
282 "A String",
283 ],
284 "localId": [ # The list of local ID's of the users to inquiry.
285 "A String",
286 ],
287 }
288
289
290Returns:
291 An object of the form:
292
293 { # Response of getting account information.
294 "kind": "identitytoolkit#GetAccountInfoResponse", # The fixed string "identitytoolkit#GetAccountInfoResponse".
295 "users": [ # The info of the users.
296 { # Template for an individual account info.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800297 "rawPassword": "A String", # The user's plain text password.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700298 "passwordHash": "A String", # The user's hashed password.
John Asmuth614db982014-04-24 15:46:26 -0400299 "displayName": "A String", # The name of the user.
300 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000301 "validSince": "A String", # Timestamp in seconds for valid login token.
John Asmuth614db982014-04-24 15:46:26 -0400302 "photoUrl": "A String", # The URL of the user profile photo.
303 "emailVerified": True or False, # Whether the email has been verified.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700304 "lastLoginAt": "A String", # last login timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700305 "customAuth": True or False, # Whether the user is authenticated by the developer.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000306 "disabled": True or False, # Whether the user is disabled.
John Asmuth614db982014-04-24 15:46:26 -0400307 "version": 42, # Version of the user's password.
308 "providerUserInfo": [ # The IDP of the user.
309 {
310 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400311 "displayName": "A String", # The user's display name at the IDP.
312 "photoUrl": "A String", # The user's photo url at the IDP.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700313 "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.
314 "rawId": "A String", # User's raw identifier directly returned from IDP.
315 "email": "A String", # User's email at IDP.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700316 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400317 },
318 ],
319 "passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
320 "salt": "A String", # The user's password salt.
321 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700322 "createdAt": "A String", # User creation timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700323 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400324 },
325 ],
326 }</pre>
327</div>
328
329<div class="method">
330 <code class="details" id="getOobConfirmationCode">getOobConfirmationCode(body)</code>
331 <pre>Get a code for user action confirmation.
332
333Args:
334 body: object, The request body. (required)
335 The object takes the form of:
336
337{ # Request of getting a code for user confirmation (reset password, change email etc.)
338 "kind": "identitytoolkit#relyingparty", # The fixed string "identitytoolkit#relyingparty".
339 "requestType": "A String", # The request type.
340 "idToken": "A String", # The user's Gitkit login token for email change.
341 "challenge": "A String", # The recaptcha challenge presented to the user.
342 "newEmail": "A String", # The new email if the code is for email change.
343 "userIp": "A String", # The IP address of the user.
344 "email": "A String", # The email of the user.
345 "captchaResp": "A String", # The recaptcha response from the user.
346 }
347
348
349Returns:
350 An object of the form:
351
352 { # Response of getting a code for user confirmation (reset password, change email etc.).
353 "kind": "identitytoolkit#GetOobConfirmationCodeResponse", # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
354 "oobCode": "A String", # The code to be send to the user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800355 "email": "A String", # The email address that the email is sent to.
356 }</pre>
357</div>
358
359<div class="method">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700360 <code class="details" id="getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800361 <pre>Get project configuration.
362
363Args:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700364 delegatedProjectNumber: string, Delegated GCP project number of the request.
365 projectNumber: string, GCP project number of the request.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800366
367Returns:
368 An object of the form:
369
370 { # Response of getting the project configuration.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800371 "dynamicLinksDomain": "A String",
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800372 "apiKey": "A String", # Browser API key, needed when making http request to Apiary.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700373 "useEmailSending": True or False, # Whether to use email sending provided by Firebear.
374 "projectId": "A String", # Project ID of the relying party.
375 "enableAnonymousUser": True or False, # Whether anonymous user is enabled.
376 "authorizedDomains": [ # Authorized domains.
377 "A String",
378 ],
379 "resetPasswordTemplate": { # Template for an email template. # Reset password email template.
380 "body": "A String", # Email body.
381 "fromDisplayName": "A String", # From display name.
382 "from": "A String", # From address of the email.
383 "format": "A String", # Email body format.
384 "replyTo": "A String", # Reply-to address.
385 "subject": "A String", # Subject of the email.
386 },
387 "legacyResetPasswordTemplate": { # Template for an email template. # Legacy reset password email template.
388 "body": "A String", # Email body.
389 "fromDisplayName": "A String", # From display name.
390 "from": "A String", # From address of the email.
391 "format": "A String", # Email body format.
392 "replyTo": "A String", # Reply-to address.
393 "subject": "A String", # Subject of the email.
394 },
395 "verifyEmailTemplate": { # Template for an email template. # Verify email template.
396 "body": "A String", # Email body.
397 "fromDisplayName": "A String", # From display name.
398 "from": "A String", # From address of the email.
399 "format": "A String", # Email body format.
400 "replyTo": "A String", # Reply-to address.
401 "subject": "A String", # Subject of the email.
402 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800403 "allowPasswordUser": True or False, # Whether to allow password user sign in or sign up.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700404 "changeEmailTemplate": { # Template for an email template. # Change email template.
405 "body": "A String", # Email body.
406 "fromDisplayName": "A String", # From display name.
407 "from": "A String", # From address of the email.
408 "format": "A String", # Email body format.
409 "replyTo": "A String", # Reply-to address.
410 "subject": "A String", # Subject of the email.
411 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800412 "idpConfig": [ # OAuth2 provider configuration.
413 { # Template for a single idp configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700414 "whitelistedAudiences": [ # Whitelisted client IDs for audience check.
415 "A String",
416 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800417 "enabled": True or False, # Whether this IDP is enabled.
418 "clientId": "A String", # OAuth2 client ID.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700419 "secret": "A String", # OAuth2 client secret.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800420 "provider": "A String", # OAuth2 provider.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700421 "experimentPercent": 42, # Percent of users who will be prompted/redirected federated login for this IDP.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800422 },
423 ],
John Asmuth614db982014-04-24 15:46:26 -0400424 }</pre>
425</div>
426
427<div class="method">
428 <code class="details" id="getPublicKeys">getPublicKeys()</code>
429 <pre>Get token signing public key.
430
431Args:
432
433Returns:
434 An object of the form:
435
436 { # Respone of getting public keys.
437 "a_key": "A String",
438 }</pre>
439</div>
440
441<div class="method">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000442 <code class="details" id="getRecaptchaParam">getRecaptchaParam()</code>
443 <pre>Get recaptcha secure param.
444
445Args:
446
447Returns:
448 An object of the form:
449
450 { # Response of getting recaptcha param.
451 "kind": "identitytoolkit#GetRecaptchaParamResponse", # The fixed string "identitytoolkit#GetRecaptchaParamResponse".
452 "recaptchaSiteKey": "A String", # Site key registered at recaptcha.
453 "recaptchaStoken": "A String", # The stoken field for the recaptcha widget, used to request captcha challenge.
454 }</pre>
455</div>
456
457<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400458 <code class="details" id="resetPassword">resetPassword(body)</code>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700459 <pre>Reset password for a user.
John Asmuth614db982014-04-24 15:46:26 -0400460
461Args:
462 body: object, The request body. (required)
463 The object takes the form of:
464
465{ # Request to reset the password.
466 "newPassword": "A String", # The new password inputted by the user.
467 "oldPassword": "A String", # The old password inputted by the user.
468 "oobCode": "A String", # The confirmation code.
469 "email": "A String", # The email address of the user.
470 }
471
472
473Returns:
474 An object of the form:
475
476 { # Response of resetting the password.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700477 "requestType": "A String", # The request type.
John Asmuth614db982014-04-24 15:46:26 -0400478 "kind": "identitytoolkit#ResetPasswordResponse", # The fixed string "identitytoolkit#ResetPasswordResponse".
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700479 "email": "A String", # The user's email. If the out-of-band code is for email recovery, the user's original email.
480 "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 -0400481 }</pre>
482</div>
483
484<div class="method">
485 <code class="details" id="setAccountInfo">setAccountInfo(body)</code>
486 <pre>Set account info for a user.
487
488Args:
489 body: object, The request body. (required)
490 The object takes the form of:
491
492{ # Request to set the account information.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800493 "instanceId": "A String", # Instance id token of the app.
494 "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 -0700495 "deleteAttribute": [ # The attributes users request to delete.
496 "A String",
497 ],
John Asmuth614db982014-04-24 15:46:26 -0400498 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000499 "validSince": "A String", # Timestamp in seconds for valid login token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800500 "photoUrl": "A String", # The photo url of the user.
John Asmuth614db982014-04-24 15:46:26 -0400501 "captchaResponse": "A String", # Response to the captcha.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000502 "emailVerified": True or False, # Mark the email as verified or not.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700503 "lastLoginAt": "A String", # Last login timestamp.
John Asmuth614db982014-04-24 15:46:26 -0400504 "provider": [ # The associated IDPs of the user.
505 "A String",
506 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000507 "disableUser": True or False, # Whether to disable the user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700508 "deleteProvider": [ # The IDPs the user request to delete.
509 "A String",
510 ],
John Asmuth614db982014-04-24 15:46:26 -0400511 "captchaChallenge": "A String", # The captcha challenge.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700512 "oobCode": "A String", # The out-of-band code of the change email request.
513 "upgradeToFederatedLogin": True or False, # Mark the user to upgrade to federated login.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000514 "idToken": "A String", # The GITKit token of the authenticated user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700515 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
516 "displayName": "A String", # The name of the user.
John Asmuth614db982014-04-24 15:46:26 -0400517 "password": "A String", # The new password of the user.
518 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700519 "createdAt": "A String", # The timestamp when the account is created.
John Asmuth614db982014-04-24 15:46:26 -0400520 }
521
522
523Returns:
524 An object of the form:
525
526 { # Respone of setting the account information.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700527 "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 -0400528 "kind": "identitytoolkit#SetAccountInfoResponse", # The fixed string "identitytoolkit#SetAccountInfoResponse".
529 "displayName": "A String", # The name of the user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700530 "localId": "A String", # The local ID of the user.
531 "photoUrl": "A String", # The photo url of the user.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400532 "emailVerified": True or False, # If email has been verified.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700533 "passwordHash": "A String", # The user's hashed password.
534 "newEmail": "A String", # The new email the user attempts to change to.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400535 "idToken": "A String", # The Gitkit id token to login the newly sign up user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700536 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
John Asmuth614db982014-04-24 15:46:26 -0400537 "providerUserInfo": [ # The user's profiles at the associated IdPs.
538 {
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700539 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400540 "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.
541 "displayName": "A String", # The user's display name at the IDP.
542 "photoUrl": "A String", # The user's photo url at the IDP.
543 },
544 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800545 "email": "A String", # The email of the user.
546 }</pre>
547</div>
548
549<div class="method">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700550 <code class="details" id="setProjectConfig">setProjectConfig(body)</code>
551 <pre>Set project configuration.
552
553Args:
554 body: object, The request body. (required)
555 The object takes the form of:
556
557{ # Request to set the project configuration.
558 "apiKey": "A String", # Browser API key, needed when making http request to Apiary.
559 "useEmailSending": True or False, # Whether to use email sending provided by Firebear.
560 "verifyEmailTemplate": { # Template for an email template. # Verify 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 "enableAnonymousUser": True or False, # Whether to enable anonymous user.
569 "authorizedDomains": [ # Authorized domains for widget redirect.
570 "A String",
571 ],
572 "resetPasswordTemplate": { # Template for an email template. # Reset password email template.
573 "body": "A String", # Email body.
574 "fromDisplayName": "A String", # From display name.
575 "from": "A String", # From address of the email.
576 "format": "A String", # Email body format.
577 "replyTo": "A String", # Reply-to address.
578 "subject": "A String", # Subject of the email.
579 },
580 "legacyResetPasswordTemplate": { # Template for an email template. # Legacy reset password email template.
581 "body": "A String", # Email body.
582 "fromDisplayName": "A String", # From display name.
583 "from": "A String", # From address of the email.
584 "format": "A String", # Email body format.
585 "replyTo": "A String", # Reply-to address.
586 "subject": "A String", # Subject of the email.
587 },
588 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
589 "allowPasswordUser": True or False, # Whether to allow password user sign in or sign up.
590 "changeEmailTemplate": { # Template for an email template. # Change email template.
591 "body": "A String", # Email body.
592 "fromDisplayName": "A String", # From display name.
593 "from": "A String", # From address of the email.
594 "format": "A String", # Email body format.
595 "replyTo": "A String", # Reply-to address.
596 "subject": "A String", # Subject of the email.
597 },
598 "idpConfig": [ # Oauth2 provider configuration.
599 { # Template for a single idp configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700600 "whitelistedAudiences": [ # Whitelisted client IDs for audience check.
601 "A String",
602 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700603 "enabled": True or False, # Whether this IDP is enabled.
604 "clientId": "A String", # OAuth2 client ID.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700605 "secret": "A String", # OAuth2 client secret.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700606 "provider": "A String", # OAuth2 provider.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700607 "experimentPercent": 42, # Percent of users who will be prompted/redirected federated login for this IDP.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700608 },
609 ],
610 }
611
612
613Returns:
614 An object of the form:
615
616 { # Response of setting the project configuration.
617 "projectId": "A String", # Project ID of the relying party.
618 }</pre>
619</div>
620
621<div class="method">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800622 <code class="details" id="signOutUser">signOutUser(body)</code>
623 <pre>Sign out user.
624
625Args:
626 body: object, The request body. (required)
627 The object takes the form of:
628
629{ # Request to sign out user.
630 "instanceId": "A String", # Instance id token of the app.
631 "localId": "A String", # The local ID of the user.
632 }
633
634
635Returns:
636 An object of the form:
637
638 { # Response of signing out user.
639 "localId": "A String", # The local ID of the user.
640 }</pre>
641</div>
642
643<div class="method">
644 <code class="details" id="signupNewUser">signupNewUser(body)</code>
645 <pre>Signup new user.
646
647Args:
648 body: object, The request body. (required)
649 The object takes the form of:
650
651{ # Request to signup new user, create anonymous user or anonymous user reauth.
652 "instanceId": "A String", # Instance id token of the app.
653 "displayName": "A String", # The name of the user.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400654 "localId": "A String", # Privileged caller can create user with specified user id.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800655 "photoUrl": "A String", # The photo url of the user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800656 "captchaResponse": "A String", # Response to the captcha.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800657 "emailVerified": True or False, # Mark the email as verified or not. Only can be used by service account.
658 "disabled": True or False, # Whether to disable the user. Only can be used by service account.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800659 "captchaChallenge": "A String", # The captcha challenge.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800660 "idToken": "A String", # The GITKit token of the authenticated user.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800661 "password": "A String", # The new password of the user.
662 "email": "A String", # The email of the user.
663 }
664
665
666Returns:
667 An object of the form:
668
669 { # Response of signing up new user, creating anonymous user or anonymous user reauth.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700670 "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 -0800671 "kind": "identitytoolkit#SignupNewUserResponse", # The fixed string "identitytoolkit#SignupNewUserResponse".
672 "displayName": "A String", # The name of the user.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700673 "localId": "A String", # The RP local ID of the user.
674 "idToken": "A String", # The Gitkit id token to login the newly sign up user.
675 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
Takashi Matsuo06694102015-09-11 13:55:40 -0700676 "email": "A String", # The email of the user.
John Asmuth614db982014-04-24 15:46:26 -0400677 }</pre>
678</div>
679
680<div class="method">
681 <code class="details" id="uploadAccount">uploadAccount(body)</code>
682 <pre>Batch upload existing user accounts.
683
684Args:
685 body: object, The request body. (required)
686 The object takes the form of:
687
688{ # Request to upload user account in batch.
Craig Citro065b5302014-08-14 00:47:23 -0700689 "hashAlgorithm": "A String", # The password hash algorithm.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800690 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800691 "allowOverwrite": True or False, # Whether allow overwrite existing account when user local_id exists.
John Asmuth614db982014-04-24 15:46:26 -0400692 "users": [ # The account info to be stored.
693 { # Template for an individual account info.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800694 "rawPassword": "A String", # The user's plain text password.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700695 "passwordHash": "A String", # The user's hashed password.
John Asmuth614db982014-04-24 15:46:26 -0400696 "displayName": "A String", # The name of the user.
697 "localId": "A String", # The local ID of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000698 "validSince": "A String", # Timestamp in seconds for valid login token.
John Asmuth614db982014-04-24 15:46:26 -0400699 "photoUrl": "A String", # The URL of the user profile photo.
700 "emailVerified": True or False, # Whether the email has been verified.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700701 "lastLoginAt": "A String", # last login timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700702 "customAuth": True or False, # Whether the user is authenticated by the developer.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000703 "disabled": True or False, # Whether the user is disabled.
John Asmuth614db982014-04-24 15:46:26 -0400704 "version": 42, # Version of the user's password.
705 "providerUserInfo": [ # The IDP of the user.
706 {
707 "federatedId": "A String", # User's identifier at IDP.
John Asmuth614db982014-04-24 15:46:26 -0400708 "displayName": "A String", # The user's display name at the IDP.
709 "photoUrl": "A String", # The user's photo url at the IDP.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700710 "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.
711 "rawId": "A String", # User's raw identifier directly returned from IDP.
712 "email": "A String", # User's email at IDP.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700713 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400714 },
715 ],
716 "passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
717 "salt": "A String", # The user's password salt.
718 "email": "A String", # The email of the user.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700719 "createdAt": "A String", # User creation timestamp.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700720 "screenName": "A String", # User's screen name at Twitter or login name at Github.
John Asmuth614db982014-04-24 15:46:26 -0400721 },
722 ],
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700723 "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 -0700724 "signerKey": "A String", # The key for to hash the password.
725 "memoryCost": 42, # Memory cost for hash calculation. Used by scrypt similar algorithms.
726 "saltSeparator": "A String", # The salt separator.
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700727 "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 -0700728 "rounds": 42, # Rounds for hash calculation. Used by scrypt and similar algorithms.
John Asmuth614db982014-04-24 15:46:26 -0400729 }
730
731
732Returns:
733 An object of the form:
734
735 { # Respone of uploading accounts in batch.
736 "kind": "identitytoolkit#UploadAccountResponse", # The fixed string "identitytoolkit#UploadAccountResponse".
737 "error": [ # The error encountered while processing the account info.
738 {
739 "index": 42, # The index of the malformed account, starting from 0.
740 "message": "A String", # Detailed error message for the account info.
741 },
742 ],
743 }</pre>
744</div>
745
746<div class="method">
747 <code class="details" id="verifyAssertion">verifyAssertion(body)</code>
748 <pre>Verifies the assertion returned by the IdP.
749
750Args:
751 body: object, The request body. (required)
752 The object takes the form of:
753
754{ # Request to verify the IDP assertion.
John Asmuth614db982014-04-24 15:46:26 -0400755 "postBody": "A String", # The post body if the request is a HTTP POST.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800756 "delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
757 "instanceId": "A String", # Instance id token of the app.
758 "idToken": "A String", # The GITKit token of the authenticated user.
John Asmuth614db982014-04-24 15:46:26 -0400759 "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 -0800760 "sessionId": "A String", # Session ID, which should match the one in previous createAuthUri request.
761 "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 -0700762 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800763 "returnRefreshToken": True or False, # Whether to return refresh tokens.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700764 "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 -0400765 }
766
767
768Returns:
769 An object of the form:
770
771 { # Response of verifying the IDP assertion.
772 "federatedId": "A String", # The unique ID identifies the IdP account.
773 "localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
774 "photoUrl": "A String", # The URI of the public accessible profiel picture.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400775 "isNewUser": True or False, # True if it's a new user sign-in, false if it's a returning user.
John Asmuth614db982014-04-24 15:46:26 -0400776 "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 -0700777 "rawUserInfo": "A String", # Raw IDP-returned user info.
John Asmuth614db982014-04-24 15:46:26 -0400778 "appScheme": "A String", # The custom scheme used by mobile app.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700779 "expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
780 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
John Asmuth614db982014-04-24 15:46:26 -0400781 "verifiedProvider": [ # When action is 'map', contains the idps which can be used for confirmation.
782 "A String",
783 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800784 "needEmail": True or False, # Whether need client to supply email to complete the federated login flow.
John Asmuth614db982014-04-24 15:46:26 -0400785 "dateOfBirth": "A String", # The birth date of the IdP account.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700786 "oauthAccessToken": "A String", # The OAuth2 access token.
787 "emailRecycled": True or False, # It's true if the email is recycled.
John Asmuth614db982014-04-24 15:46:26 -0400788 "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 -0700789 "screenName": "A String", # The screen_name of a Twitter user or the login name at Github.
Jon Wayne Parrott2512a0c2016-08-29 10:21:22 -0700790 "nickName": "A String", # The nick name of the user.
791 "errorMessage": "A String", # Client error code.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700792 "oauthTokenSecret": "A String", # The OAuth1 access token secret.
John Asmuth614db982014-04-24 15:46:26 -0400793 "language": "A String", # The language preference of the user.
794 "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 -0700795 "oauthIdToken": "A String", # The OIDC id token.
John Asmuth614db982014-04-24 15:46:26 -0400796 "fullName": "A String", # The full name of the user.
797 "kind": "identitytoolkit#VerifyAssertionResponse", # The fixed string "identitytoolkit#VerifyAssertionResponse".
John Asmuth614db982014-04-24 15:46:26 -0400798 "displayName": "A String", # The display name of the user.
799 "appInstallationUrl": "A String", # URL for OTA app installation.
800 "firstName": "A String", # The first name of the user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000801 "oauthExpireIn": 42, # The lifetime in seconds of the OAuth2 access token.
John Asmuth614db982014-04-24 15:46:26 -0400802 "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 -0700803 "lastName": "A String", # The last name of the user.
John Asmuth614db982014-04-24 15:46:26 -0400804 "oauthScope": "A String", # The scope for the OpenID OAuth extension.
805 "oauthRequestToken": "A String", # The user approved request token for the OpenID OAuth extension.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000806 "oauthAuthorizationCode": "A String", # The OAuth2 authorization code.
John Asmuth614db982014-04-24 15:46:26 -0400807 "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 -0800808 "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 -0400809 "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 -0700810 "idToken": "A String", # The ID token.
John Asmuth614db982014-04-24 15:46:26 -0400811 "action": "A String", # The action code.
812 "timeZone": "A String", # The timezone of the user.
John Asmuth614db982014-04-24 15:46:26 -0400813 }</pre>
814</div>
815
816<div class="method">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800817 <code class="details" id="verifyCustomToken">verifyCustomToken(body)</code>
818 <pre>Verifies the developer asserted ID token.
819
820Args:
821 body: object, The request body. (required)
822 The object takes the form of:
823
824{ # Request to verify a custom token
825 "instanceId": "A String", # Instance id token of the app.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700826 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800827 "token": "A String", # The custom token to verify
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700828 "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 -0800829 }
830
831
832Returns:
833 An object of the form:
834
835 { # Response from verifying a custom token
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700836 "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 -0800837 "idToken": "A String", # The GITKit token for authenticated user.
838 "kind": "identitytoolkit#VerifyCustomTokenResponse", # The fixed string "identitytoolkit#VerifyCustomTokenResponse".
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700839 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800840 }</pre>
841</div>
842
843<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400844 <code class="details" id="verifyPassword">verifyPassword(body)</code>
845 <pre>Verifies the user entered password.
846
847Args:
848 body: object, The request body. (required)
849 The object takes the form of:
850
851{ # Request to verify the password.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800852 "instanceId": "A String", # Instance id token of the app.
853 "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 -0400854 "captchaResponse": "A String", # Response to the captcha.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800855 "idToken": "A String", # The GITKit token of the authenticated user.
856 "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 -0400857 "captchaChallenge": "A String", # The captcha challenge.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700858 "returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
John Asmuth614db982014-04-24 15:46:26 -0400859 "password": "A String", # The password inputed by the user.
860 "email": "A String", # The email of the user.
John Asmuth614db982014-04-24 15:46:26 -0400861 }
862
863
864Returns:
865 An object of the form:
866
867 { # Request of verifying the password.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700868 "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 -0400869 "kind": "identitytoolkit#VerifyPasswordResponse", # The fixed string "identitytoolkit#VerifyPasswordResponse".
870 "displayName": "A String", # The name of the user.
871 "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 -0700872 "oauthAccessToken": "A String", # The OAuth2 access token.
John Asmuth614db982014-04-24 15:46:26 -0400873 "photoUrl": "A String", # The URI of the user's photo at IdP
Takashi Matsuo06694102015-09-11 13:55:40 -0700874 "oauthExpireIn": 42, # The lifetime in seconds of the OAuth2 access token.
John Asmuth614db982014-04-24 15:46:26 -0400875 "idToken": "A String", # The GITKit token for authenticated user.
876 "registered": True or False, # Whether the email is registered.
Takashi Matsuo06694102015-09-11 13:55:40 -0700877 "oauthAuthorizationCode": "A String", # The OAuth2 authorization code.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700878 "refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
John Asmuth614db982014-04-24 15:46:26 -0400879 "email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
880 }</pre>
881</div>
882
883</body></html>