Identity Toolkit API . accounts

Instance Methods

mfaEnrollment()

Returns the mfaEnrollment Resource.

mfaSignIn()

Returns the mfaSignIn Resource.

close()

Close httplib2 connections.

revokeToken(body=None, x__xgafv=None)

Revokes a user's token from an Identity Provider (IdP). This is done by manually providing an IdP credential, and the token types for revocation. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Method Details

close()
Close httplib2 connections.
revokeToken(body=None, x__xgafv=None)
Revokes a user's token from an Identity Provider (IdP). This is done by manually providing an IdP credential, and the token types for revocation. An [API key](https://cloud.google.com/docs/authentication/api-keys) is required in the request in order to identify the Google Cloud project.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request message for RevokeToken.
  "idToken": "A String", # Required. A valid Identity Platform ID token to link the account. If there was a successful token revocation request on the account and no tokens are generated after the revocation, the duplicate requests will be ignored and returned immediately.
  "providerId": "A String", # Required. The idp provider for the token. Currently only supports Apple Idp. The format should be "apple.com".
  "redirectUri": "A String", # The redirect URI provided in the initial authorization request made by the client to the IDP. The URI must use the HTTPS protocol, include a domain name, and can't contain an IP address or localhost. Required if token_type is CODE.
  "tenantId": "A String", # The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.
  "token": "A String", # Required. The token to be revoked. If an authorization_code is passed in, the API will first exchange the code for access token and then revoke the token exchanged.
  "tokenType": "A String", # Required. The type of the token to be revoked.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for RevokeToken. Empty for now.
}