Class: Google::Apis::IdentitytoolkitV3::VerifyAssertionRequest

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 the IDP assertion.

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) ⇒ VerifyAssertionRequest

Returns a new instance of VerifyAssertionRequest



1373
1374
1375
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1373

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

Instance Attribute Details

#auto_createBoolean Also known as: auto_create?

When it's true, automatically creates a new account if the user doesn't exist. When it's false, allows existing user to sign in normally and throws exception if the user doesn't exist. Corresponds to the JSON property autoCreate

Returns:

  • (Boolean)


1302
1303
1304
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1302

def auto_create
  @auto_create
end

#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)


1309
1310
1311
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1309

def delegated_project_number
  @delegated_project_number
end

#id_tokenString

The GITKit token of the authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)


1314
1315
1316
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1314

def id_token
  @id_token
end

#instance_idString

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

Returns:

  • (String)


1319
1320
1321
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1319

def instance_id
  @instance_id
end

#pending_id_tokenString

The GITKit token for the non-trusted IDP pending to be confirmed by the user. Corresponds to the JSON property pendingIdToken

Returns:

  • (String)


1324
1325
1326
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1324

def pending_id_token
  @pending_id_token
end

#post_bodyString

The post body if the request is a HTTP POST. Corresponds to the JSON property postBody

Returns:

  • (String)


1329
1330
1331
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1329

def post_body
  @post_body
end

#request_uriString

The URI to which the IDP redirects the user back. It may contain federated login result params added by the IDP. Corresponds to the JSON property requestUri

Returns:

  • (String)


1335
1336
1337
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1335

def request_uri
  @request_uri
end

#return_idp_credentialBoolean Also known as: return_idp_credential?

Whether return 200 and IDP credential rather than throw exception when federated id is already linked. Corresponds to the JSON property returnIdpCredential

Returns:

  • (Boolean)


1341
1342
1343
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1341

def return_idp_credential
  @return_idp_credential
end

#return_refresh_tokenBoolean Also known as: return_refresh_token?

Whether to return refresh tokens. Corresponds to the JSON property returnRefreshToken

Returns:

  • (Boolean)


1347
1348
1349
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1347

def return_refresh_token
  @return_refresh_token
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)


1353
1354
1355
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1353

def return_secure_token
  @return_secure_token
end

#session_idString

Session ID, which should match the one in previous createAuthUri request. Corresponds to the JSON property sessionId

Returns:

  • (String)


1359
1360
1361
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1359

def session_id
  @session_id
end

#tenant_idString

For multi-tenant use cases, in order to construct sign-in URL with the correct IDP parameters, Firebear needs to know which Tenant to retrieve IDP configs from. Corresponds to the JSON property tenantId

Returns:

  • (String)


1366
1367
1368
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1366

def tenant_id
  @tenant_id
end

#tenant_project_numberFixnum

Tenant project number to be used for idp discovery. Corresponds to the JSON property tenantProjectNumber

Returns:

  • (Fixnum)


1371
1372
1373
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1371

def tenant_project_number
  @tenant_project_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1378

def update!(**args)
  @auto_create = args[:auto_create] if args.key?(:auto_create)
  @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
  @id_token = args[:id_token] if args.key?(:id_token)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token)
  @post_body = args[:post_body] if args.key?(:post_body)
  @request_uri = args[:request_uri] if args.key?(:request_uri)
  @return_idp_credential = args[:return_idp_credential] if args.key?(:return_idp_credential)
  @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token)
  @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
  @session_id = args[:session_id] if args.key?(:session_id)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
  @tenant_project_number = args[:tenant_project_number] if args.key?(:tenant_project_number)
end