Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RevokeTokenRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb
Overview
Request message for RevokeToken.
Instance Attribute Summary collapse
-
#id_token ⇒ String
Required.
-
#provider_id ⇒ String
Required.
-
#redirect_uri ⇒ String
The redirect URI provided in the initial authorization request made by the client to the IDP.
-
#tenant_id ⇒ String
The ID of the Identity Platform tenant the user is signing in to.
-
#token ⇒ String
Required.
-
#token_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2RevokeTokenRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV2RevokeTokenRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2RevokeTokenRequest
Returns a new instance of GoogleCloudIdentitytoolkitV2RevokeTokenRequest.
2580 2581 2582 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id_token ⇒ 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.
Corresponds to the JSON property idToken
2547 2548 2549 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2547 def id_token @id_token end |
#provider_id ⇒ String
Required. The idp provider for the token. Currently only supports Apple Idp.
The format should be "apple.com".
Corresponds to the JSON property providerId
2553 2554 2555 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2553 def provider_id @provider_id end |
#redirect_uri ⇒ 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.
Corresponds to the JSON property redirectUri
2560 2561 2562 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2560 def redirect_uri @redirect_uri end |
#tenant_id ⇒ 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.
Corresponds to the JSON property tenantId
2566 2567 2568 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2566 def tenant_id @tenant_id end |
#token ⇒ 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.
Corresponds to the JSON property token
2573 2574 2575 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2573 def token @token end |
#token_type ⇒ String
Required. The type of the token to be revoked.
Corresponds to the JSON property tokenType
2578 2579 2580 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2578 def token_type @token_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2585 2586 2587 2588 2589 2590 2591 2592 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2585 def update!(**args) @id_token = args[:id_token] if args.key?(:id_token) @provider_id = args[:provider_id] if args.key?(:provider_id) @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) @token = args[:token] if args.key?(:token) @token_type = args[:token_type] if args.key?(:token_type) end |