blob: 678cdcafe2609a7390ddc1debc84c825b991f804 [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="identitytoolkit_v3.html">Google Identity Toolkit API</a> . <a href="identitytoolkit_v3.relyingparty.html">relyingparty</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#createAuthUri">createAuthUri(body)</a></code></p>
<p class="firstline">Creates the URI used by the IdP to authenticate the user.</p>
<p class="toc_element">
<code><a href="#deleteAccount">deleteAccount(body)</a></code></p>
<p class="firstline">Delete user account.</p>
<p class="toc_element">
<code><a href="#downloadAccount">downloadAccount(body)</a></code></p>
<p class="firstline">Batch download user accounts.</p>
<p class="toc_element">
<code><a href="#getAccountInfo">getAccountInfo(body)</a></code></p>
<p class="firstline">Returns the account info.</p>
<p class="toc_element">
<code><a href="#getOobConfirmationCode">getOobConfirmationCode(body)</a></code></p>
<p class="firstline">Get a code for user action confirmation.</p>
<p class="toc_element">
<code><a href="#getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</a></code></p>
<p class="firstline">Get project configuration.</p>
<p class="toc_element">
<code><a href="#getPublicKeys">getPublicKeys()</a></code></p>
<p class="firstline">Get token signing public key.</p>
<p class="toc_element">
<code><a href="#getRecaptchaParam">getRecaptchaParam()</a></code></p>
<p class="firstline">Get recaptcha secure param.</p>
<p class="toc_element">
<code><a href="#resetPassword">resetPassword(body)</a></code></p>
<p class="firstline">Reset password for a user.</p>
<p class="toc_element">
<code><a href="#setAccountInfo">setAccountInfo(body)</a></code></p>
<p class="firstline">Set account info for a user.</p>
<p class="toc_element">
<code><a href="#setProjectConfig">setProjectConfig(body)</a></code></p>
<p class="firstline">Set project configuration.</p>
<p class="toc_element">
<code><a href="#signOutUser">signOutUser(body)</a></code></p>
<p class="firstline">Sign out user.</p>
<p class="toc_element">
<code><a href="#signupNewUser">signupNewUser(body)</a></code></p>
<p class="firstline">Signup new user.</p>
<p class="toc_element">
<code><a href="#uploadAccount">uploadAccount(body)</a></code></p>
<p class="firstline">Batch upload existing user accounts.</p>
<p class="toc_element">
<code><a href="#verifyAssertion">verifyAssertion(body)</a></code></p>
<p class="firstline">Verifies the assertion returned by the IdP.</p>
<p class="toc_element">
<code><a href="#verifyCustomToken">verifyCustomToken(body)</a></code></p>
<p class="firstline">Verifies the developer asserted ID token.</p>
<p class="toc_element">
<code><a href="#verifyPassword">verifyPassword(body)</a></code></p>
<p class="firstline">Verifies the user entered password.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="createAuthUri">createAuthUri(body)</code>
<pre>Creates the URI used by the IdP to authenticate the user.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to get the IDP authentication URL.
"sessionId": "A String", # The session_id passed by client.
"hostedDomain": "A String", # The hosted domain to restrict sign-in to accounts at that domain for Google Apps hosted accounts.
"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.
"oauthConsumerKey": "A String", # The developer's consumer key for OpenId OAuth Extension
"clientId": "A String", # The relying party OAuth client ID.
"oauthScope": "A String", # Additional oauth scopes, beyond the basid user profile, that the user would be prompted to grant
"otaApp": "A String", # The native app package for OTA installation.
"authFlowType": "A String", # Explicitly specify the auth flow type. Currently only support "CODE_FLOW" type. The field is only used for Google provider.
"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.
"context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
"appId": "A String", # The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, BUNDLE_ID for iOS.
"continueUri": "A String", # The URI to which the IDP redirects the user after the federated login flow.
"identifier": "A String", # The email or federated ID of the user.
}
Returns:
An object of the form:
{ # Response of creating the IDP authentication URL.
"sessionId": "A String", # Session ID which should be passed in the following verifyAssertion request.
"kind": "identitytoolkit#CreateAuthUriResponse", # The fixed string identitytoolkit#CreateAuthUriResponse".
"captchaRequired": True or False, # True if captcha is required.
"registered": True or False, # Whether the user is registered if the identifier is an email.
"allProviders": [ # all providers the user has once used to do federated login
"A String",
],
"forExistingProvider": True or False, # True if the authUri is for user's existing provider.
"providerId": "A String", # The provider ID of the auth URI.
"authUri": "A String", # The URI used by the IDP to authenticate the user.
}</pre>
</div>
<div class="method">
<code class="details" id="deleteAccount">deleteAccount(body)</code>
<pre>Delete user account.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to delete account.
"idToken": "A String", # The GITKit token or STS id token of the authenticated user.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"localId": "A String", # The local ID of the user.
}
Returns:
An object of the form:
{ # Respone of deleting account.
"kind": "identitytoolkit#DeleteAccountResponse", # The fixed string "identitytoolkit#DeleteAccountResponse".
}</pre>
</div>
<div class="method">
<code class="details" id="downloadAccount">downloadAccount(body)</code>
<pre>Batch download user accounts.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to download user account in batch.
"nextPageToken": "A String", # The token for the next page. This should be taken from the previous response.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"maxResults": 42, # The max number of results to return in the response.
}
Returns:
An object of the form:
{ # Respone of downloading accounts in batch.
"nextPageToken": "A String", # The next page token. To be used in a subsequent request to return the next page of results.
"kind": "identitytoolkit#DownloadAccountResponse", # The fixed string "identitytoolkit#DownloadAccountResponse".
"users": [ # The user accounts data.
{ # Template for an individual account info.
"passwordHash": "A String", # The user's hashed password.
"displayName": "A String", # The name of the user.
"localId": "A String", # The local ID of the user.
"validSince": "A String", # Timestamp in seconds for valid login token.
"photoUrl": "A String", # The URL of the user profile photo.
"emailVerified": True or False, # Whether the email has been verified.
"lastLoginAt": "A String", # last login timestamp.
"disabled": True or False, # Whether the user is disabled.
"version": 42, # Version of the user's password.
"providerUserInfo": [ # The IDP of the user.
{
"federatedId": "A String", # User's identifier at IDP.
"displayName": "A String", # The user's display name at the IDP.
"photoUrl": "A String", # The user's photo url at the IDP.
"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.
"rawId": "A String", # User's raw identifier directly returned from IDP.
"email": "A String", # User's email at IDP.
"screenName": "A String", # User's screen name at Twitter.
},
],
"passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
"salt": "A String", # The user's password salt.
"email": "A String", # The email of the user.
"createdAt": "A String", # User creation timestamp.
"screenName": "A String", # User's screen name at Twitter.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="getAccountInfo">getAccountInfo(body)</code>
<pre>Returns the account info.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to get the account information.
"idToken": "A String", # The GITKit token of the authenticated user.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"email": [ # The list of emails of the users to inquiry.
"A String",
],
"localId": [ # The list of local ID's of the users to inquiry.
"A String",
],
}
Returns:
An object of the form:
{ # Response of getting account information.
"kind": "identitytoolkit#GetAccountInfoResponse", # The fixed string "identitytoolkit#GetAccountInfoResponse".
"users": [ # The info of the users.
{ # Template for an individual account info.
"passwordHash": "A String", # The user's hashed password.
"displayName": "A String", # The name of the user.
"localId": "A String", # The local ID of the user.
"validSince": "A String", # Timestamp in seconds for valid login token.
"photoUrl": "A String", # The URL of the user profile photo.
"emailVerified": True or False, # Whether the email has been verified.
"lastLoginAt": "A String", # last login timestamp.
"disabled": True or False, # Whether the user is disabled.
"version": 42, # Version of the user's password.
"providerUserInfo": [ # The IDP of the user.
{
"federatedId": "A String", # User's identifier at IDP.
"displayName": "A String", # The user's display name at the IDP.
"photoUrl": "A String", # The user's photo url at the IDP.
"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.
"rawId": "A String", # User's raw identifier directly returned from IDP.
"email": "A String", # User's email at IDP.
"screenName": "A String", # User's screen name at Twitter.
},
],
"passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
"salt": "A String", # The user's password salt.
"email": "A String", # The email of the user.
"createdAt": "A String", # User creation timestamp.
"screenName": "A String", # User's screen name at Twitter.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="getOobConfirmationCode">getOobConfirmationCode(body)</code>
<pre>Get a code for user action confirmation.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request of getting a code for user confirmation (reset password, change email etc.)
"kind": "identitytoolkit#relyingparty", # The fixed string "identitytoolkit#relyingparty".
"requestType": "A String", # The request type.
"idToken": "A String", # The user's Gitkit login token for email change.
"challenge": "A String", # The recaptcha challenge presented to the user.
"newEmail": "A String", # The new email if the code is for email change.
"userIp": "A String", # The IP address of the user.
"email": "A String", # The email of the user.
"captchaResp": "A String", # The recaptcha response from the user.
}
Returns:
An object of the form:
{ # Response of getting a code for user confirmation (reset password, change email etc.).
"kind": "identitytoolkit#GetOobConfirmationCodeResponse", # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
"oobCode": "A String", # The code to be send to the user.
"email": "A String", # The email address that the email is sent to.
}</pre>
</div>
<div class="method">
<code class="details" id="getProjectConfig">getProjectConfig(delegatedProjectNumber=None, projectNumber=None)</code>
<pre>Get project configuration.
Args:
delegatedProjectNumber: string, Delegated GCP project number of the request.
projectNumber: string, GCP project number of the request.
Returns:
An object of the form:
{ # Response of getting the project configuration.
"apiKey": "A String", # Browser API key, needed when making http request to Apiary.
"useEmailSending": True or False, # Whether to use email sending provided by Firebear.
"projectId": "A String", # Project ID of the relying party.
"enableAnonymousUser": True or False, # Whether anonymous user is enabled.
"authorizedDomains": [ # Authorized domains.
"A String",
],
"resetPasswordTemplate": { # Template for an email template. # Reset password email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"legacyResetPasswordTemplate": { # Template for an email template. # Legacy reset password email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"verifyEmailTemplate": { # Template for an email template. # Verify email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"allowPasswordUser": True or False, # Whether to allow password user sign in or sign up.
"changeEmailTemplate": { # Template for an email template. # Change email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"idpConfig": [ # OAuth2 provider configuration.
{ # Template for a single idp configuration.
"whitelistedAudiences": [ # Whitelisted client IDs for audience check.
"A String",
],
"enabled": True or False, # Whether this IDP is enabled.
"clientId": "A String", # OAuth2 client ID.
"secret": "A String", # OAuth2 client secret.
"provider": "A String", # OAuth2 provider.
"experimentPercent": 42, # Percent of users who will be prompted/redirected federated login for this IDP.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="getPublicKeys">getPublicKeys()</code>
<pre>Get token signing public key.
Args:
Returns:
An object of the form:
{ # Respone of getting public keys.
"a_key": "A String",
}</pre>
</div>
<div class="method">
<code class="details" id="getRecaptchaParam">getRecaptchaParam()</code>
<pre>Get recaptcha secure param.
Args:
Returns:
An object of the form:
{ # Response of getting recaptcha param.
"kind": "identitytoolkit#GetRecaptchaParamResponse", # The fixed string "identitytoolkit#GetRecaptchaParamResponse".
"recaptchaSiteKey": "A String", # Site key registered at recaptcha.
"recaptchaStoken": "A String", # The stoken field for the recaptcha widget, used to request captcha challenge.
}</pre>
</div>
<div class="method">
<code class="details" id="resetPassword">resetPassword(body)</code>
<pre>Reset password for a user.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to reset the password.
"newPassword": "A String", # The new password inputted by the user.
"oldPassword": "A String", # The old password inputted by the user.
"oobCode": "A String", # The confirmation code.
"email": "A String", # The email address of the user.
}
Returns:
An object of the form:
{ # Response of resetting the password.
"kind": "identitytoolkit#ResetPasswordResponse", # The fixed string "identitytoolkit#ResetPasswordResponse".
"email": "A String", # The user's email.
}</pre>
</div>
<div class="method">
<code class="details" id="setAccountInfo">setAccountInfo(body)</code>
<pre>Set account info for a user.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to set the account information.
"instanceId": "A String", # Instance id token of the app.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"deleteAttribute": [ # The attributes users request to delete.
"A String",
],
"localId": "A String", # The local ID of the user.
"validSince": "A String", # Timestamp in seconds for valid login token.
"photoUrl": "A String", # The photo url of the user.
"captchaResponse": "A String", # Response to the captcha.
"emailVerified": True or False, # Mark the email as verified or not.
"lastLoginAt": "A String", # Last login timestamp.
"provider": [ # The associated IDPs of the user.
"A String",
],
"disableUser": True or False, # Whether to disable the user.
"deleteProvider": [ # The IDPs the user request to delete.
"A String",
],
"captchaChallenge": "A String", # The captcha challenge.
"oobCode": "A String", # The out-of-band code of the change email request.
"upgradeToFederatedLogin": True or False, # Mark the user to upgrade to federated login.
"idToken": "A String", # The GITKit token of the authenticated user.
"returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
"displayName": "A String", # The name of the user.
"password": "A String", # The new password of the user.
"email": "A String", # The email of the user.
"createdAt": "A String", # The timestamp when the account is created.
}
Returns:
An object of the form:
{ # Respone of setting the account information.
"expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
"kind": "identitytoolkit#SetAccountInfoResponse", # The fixed string "identitytoolkit#SetAccountInfoResponse".
"displayName": "A String", # The name of the user.
"localId": "A String", # The local ID of the user.
"photoUrl": "A String", # The photo url of the user.
"idToken": "A String", # The Gitkit id token to login the newly sign up user.
"passwordHash": "A String", # The user's hashed password.
"newEmail": "A String", # The new email the user attempts to change to.
"refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
"providerUserInfo": [ # The user's profiles at the associated IdPs.
{
"federatedId": "A String", # User's identifier at IDP.
"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.
"displayName": "A String", # The user's display name at the IDP.
"photoUrl": "A String", # The user's photo url at the IDP.
},
],
"email": "A String", # The email of the user.
}</pre>
</div>
<div class="method">
<code class="details" id="setProjectConfig">setProjectConfig(body)</code>
<pre>Set project configuration.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to set the project configuration.
"apiKey": "A String", # Browser API key, needed when making http request to Apiary.
"useEmailSending": True or False, # Whether to use email sending provided by Firebear.
"verifyEmailTemplate": { # Template for an email template. # Verify email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"enableAnonymousUser": True or False, # Whether to enable anonymous user.
"authorizedDomains": [ # Authorized domains for widget redirect.
"A String",
],
"resetPasswordTemplate": { # Template for an email template. # Reset password email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"legacyResetPasswordTemplate": { # Template for an email template. # Legacy reset password email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"allowPasswordUser": True or False, # Whether to allow password user sign in or sign up.
"changeEmailTemplate": { # Template for an email template. # Change email template.
"body": "A String", # Email body.
"fromDisplayName": "A String", # From display name.
"from": "A String", # From address of the email.
"format": "A String", # Email body format.
"replyTo": "A String", # Reply-to address.
"subject": "A String", # Subject of the email.
},
"idpConfig": [ # Oauth2 provider configuration.
{ # Template for a single idp configuration.
"whitelistedAudiences": [ # Whitelisted client IDs for audience check.
"A String",
],
"enabled": True or False, # Whether this IDP is enabled.
"clientId": "A String", # OAuth2 client ID.
"secret": "A String", # OAuth2 client secret.
"provider": "A String", # OAuth2 provider.
"experimentPercent": 42, # Percent of users who will be prompted/redirected federated login for this IDP.
},
],
}
Returns:
An object of the form:
{ # Response of setting the project configuration.
"projectId": "A String", # Project ID of the relying party.
}</pre>
</div>
<div class="method">
<code class="details" id="signOutUser">signOutUser(body)</code>
<pre>Sign out user.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to sign out user.
"instanceId": "A String", # Instance id token of the app.
"localId": "A String", # The local ID of the user.
}
Returns:
An object of the form:
{ # Response of signing out user.
"localId": "A String", # The local ID of the user.
}</pre>
</div>
<div class="method">
<code class="details" id="signupNewUser">signupNewUser(body)</code>
<pre>Signup new user.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to signup new user, create anonymous user or anonymous user reauth.
"instanceId": "A String", # Instance id token of the app.
"displayName": "A String", # The name of the user.
"captchaResponse": "A String", # Response to the captcha.
"idToken": "A String", # The GITKit token of the authenticated user.
"captchaChallenge": "A String", # The captcha challenge.
"password": "A String", # The new password of the user.
"email": "A String", # The email of the user.
}
Returns:
An object of the form:
{ # Response of signing up new user, creating anonymous user or anonymous user reauth.
"expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
"kind": "identitytoolkit#SignupNewUserResponse", # The fixed string "identitytoolkit#SignupNewUserResponse".
"displayName": "A String", # The name of the user.
"localId": "A String", # The RP local ID of the user.
"idToken": "A String", # The Gitkit id token to login the newly sign up user.
"refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
"email": "A String", # The email of the user.
}</pre>
</div>
<div class="method">
<code class="details" id="uploadAccount">uploadAccount(body)</code>
<pre>Batch upload existing user accounts.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to upload user account in batch.
"hashAlgorithm": "A String", # The password hash algorithm.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"users": [ # The account info to be stored.
{ # Template for an individual account info.
"passwordHash": "A String", # The user's hashed password.
"displayName": "A String", # The name of the user.
"localId": "A String", # The local ID of the user.
"validSince": "A String", # Timestamp in seconds for valid login token.
"photoUrl": "A String", # The URL of the user profile photo.
"emailVerified": True or False, # Whether the email has been verified.
"lastLoginAt": "A String", # last login timestamp.
"disabled": True or False, # Whether the user is disabled.
"version": 42, # Version of the user's password.
"providerUserInfo": [ # The IDP of the user.
{
"federatedId": "A String", # User's identifier at IDP.
"displayName": "A String", # The user's display name at the IDP.
"photoUrl": "A String", # The user's photo url at the IDP.
"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.
"rawId": "A String", # User's raw identifier directly returned from IDP.
"email": "A String", # User's email at IDP.
"screenName": "A String", # User's screen name at Twitter.
},
],
"passwordUpdatedAt": 3.14, # The timestamp when the password was last updated.
"salt": "A String", # The user's password salt.
"email": "A String", # The email of the user.
"createdAt": "A String", # User creation timestamp.
"screenName": "A String", # User's screen name at Twitter.
},
],
"signerKey": "A String", # The key for to hash the password.
"memoryCost": 42, # Memory cost for hash calculation. Used by scrypt similar algorithms.
"saltSeparator": "A String", # The salt separator.
"rounds": 42, # Rounds for hash calculation. Used by scrypt and similar algorithms.
}
Returns:
An object of the form:
{ # Respone of uploading accounts in batch.
"kind": "identitytoolkit#UploadAccountResponse", # The fixed string "identitytoolkit#UploadAccountResponse".
"error": [ # The error encountered while processing the account info.
{
"index": 42, # The index of the malformed account, starting from 0.
"message": "A String", # Detailed error message for the account info.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="verifyAssertion">verifyAssertion(body)</code>
<pre>Verifies the assertion returned by the IdP.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to verify the IDP assertion.
"postBody": "A String", # The post body if the request is a HTTP POST.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"instanceId": "A String", # Instance id token of the app.
"idToken": "A String", # The GITKit token of the authenticated user.
"pendingIdToken": "A String", # The GITKit token for the non-trusted IDP pending to be confirmed by the user.
"sessionId": "A String", # Session ID, which should match the one in previous createAuthUri request.
"requestUri": "A String", # The URI to which the IDP redirects the user back. It may contain federated login result params added by the IDP.
"returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
"returnRefreshToken": True or False, # Whether to return refresh tokens.
}
Returns:
An object of the form:
{ # Response of verifying the IDP assertion.
"federatedId": "A String", # The unique ID identifies the IdP account.
"localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
"photoUrl": "A String", # The URI of the public accessible profiel picture.
"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.
"appScheme": "A String", # The custom scheme used by mobile app.
"expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
"refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
"verifiedProvider": [ # When action is 'map', contains the idps which can be used for confirmation.
"A String",
],
"needEmail": True or False, # Whether need client to supply email to complete the federated login flow.
"dateOfBirth": "A String", # The birth date of the IdP account.
"nickName": "A String", # The nick name of the user.
"email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
"screenName": "A String", # The screen_name of a Twitter user.
"oauthAccessToken": "A String", # The OAuth2 access token.
"oauthTokenSecret": "A String", # The OAuth1 access token secret.
"language": "A String", # The language preference of the user.
"needConfirmation": True or False, # Whether the assertion is from a non-trusted IDP and need account linking confirmation.
"oauthIdToken": "A String", # The OIDC id token.
"fullName": "A String", # The full name of the user.
"kind": "identitytoolkit#VerifyAssertionResponse", # The fixed string "identitytoolkit#VerifyAssertionResponse".
"idToken": "A String", # The ID token.
"displayName": "A String", # The display name of the user.
"appInstallationUrl": "A String", # URL for OTA app installation.
"firstName": "A String", # The first name of the user.
"oauthExpireIn": 42, # The lifetime in seconds of the OAuth2 access token.
"emailVerified": True or False, # The value is true if the IDP is also the email provider. It means the user owns the email.
"oauthScope": "A String", # The scope for the OpenID OAuth extension.
"oauthRequestToken": "A String", # The user approved request token for the OpenID OAuth extension.
"oauthAuthorizationCode": "A String", # The OAuth2 authorization code.
"originalEmail": "A String", # The original email stored in the mapping storage. It's returned when the federated ID is associated to a different email.
"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.
"context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
"lastName": "A String", # The last name of the user.
"action": "A String", # The action code.
"timeZone": "A String", # The timezone of the user.
"emailRecycled": True or False, # It's true if the email is recycled.
}</pre>
</div>
<div class="method">
<code class="details" id="verifyCustomToken">verifyCustomToken(body)</code>
<pre>Verifies the developer asserted ID token.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to verify a custom token
"instanceId": "A String", # Instance id token of the app.
"returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
"token": "A String", # The custom token to verify
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
}
Returns:
An object of the form:
{ # Response from verifying a custom token
"expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
"idToken": "A String", # The GITKit token for authenticated user.
"kind": "identitytoolkit#VerifyCustomTokenResponse", # The fixed string "identitytoolkit#VerifyCustomTokenResponse".
"refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
}</pre>
</div>
<div class="method">
<code class="details" id="verifyPassword">verifyPassword(body)</code>
<pre>Verifies the user entered password.
Args:
body: object, The request body. (required)
The object takes the form of:
{ # Request to verify the password.
"instanceId": "A String", # Instance id token of the app.
"delegatedProjectNumber": "A String", # GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration.
"captchaResponse": "A String", # Response to the captcha.
"idToken": "A String", # The GITKit token of the authenticated user.
"pendingIdToken": "A String", # The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
"captchaChallenge": "A String", # The captcha challenge.
"returnSecureToken": True or False, # Whether return sts id token and refresh token instead of gitkit token.
"password": "A String", # The password inputed by the user.
"email": "A String", # The email of the user.
}
Returns:
An object of the form:
{ # Request of verifying the password.
"expiresIn": "A String", # If idToken is STS id token, then this field will be expiration time of STS id token in seconds.
"kind": "identitytoolkit#VerifyPasswordResponse", # The fixed string "identitytoolkit#VerifyPasswordResponse".
"displayName": "A String", # The name of the user.
"localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
"oauthAccessToken": "A String", # The OAuth2 access token.
"photoUrl": "A String", # The URI of the user's photo at IdP
"oauthExpireIn": 42, # The lifetime in seconds of the OAuth2 access token.
"idToken": "A String", # The GITKit token for authenticated user.
"registered": True or False, # Whether the email is registered.
"oauthAuthorizationCode": "A String", # The OAuth2 authorization code.
"refreshToken": "A String", # If idToken is STS id token, then this field will be refresh token.
"email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
}</pre>
</div>
</body></html>