Class: Google::Apis::IdentitytoolkitV3::VerifyCustomTokenRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/identitytoolkit_v3/classes.rb,
generated/google/apis/identitytoolkit_v3/representations.rb,
generated/google/apis/identitytoolkit_v3/representations.rb

Overview

Request to verify a custom token

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VerifyCustomTokenRequest

Returns a new instance of VerifyCustomTokenRequest



1182
1183
1184
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1182

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#delegated_project_numberFixnum

GCP project number of the requesting delegated app. Currently only intended for Firebase V1 migration. Corresponds to the JSON property delegatedProjectNumber

Returns:

  • (Fixnum)


1164
1165
1166
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1164

def delegated_project_number
  @delegated_project_number
end

#instance_idString

Instance id token of the app. Corresponds to the JSON property instanceId

Returns:

  • (String)


1169
1170
1171
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1169

def instance_id
  @instance_id
end

#return_secure_tokenBoolean Also known as: return_secure_token?

Whether return sts id token and refresh token instead of gitkit token. Corresponds to the JSON property returnSecureToken

Returns:

  • (Boolean)


1174
1175
1176
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1174

def return_secure_token
  @return_secure_token
end

#tokenString

The custom token to verify Corresponds to the JSON property token

Returns:

  • (String)


1180
1181
1182
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1180

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1187
1188
1189
1190
1191
1192
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1187

def update!(**args)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
  @token = args[:token] if args.key?(:token)
end