Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasskeyConfig

Inherits:
Object
  • Object
show all
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

Configuration for signing in users using passkeys.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2PasskeyConfig

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2PasskeyConfig.



1258
1259
1260
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1258

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

Instance Attribute Details

#expected_originsArray<String>

Required. The website or app origins associated with the customer's sites or apps. Only challenges signed from these origins will be allowed to sign in with passkeys. Corresponds to the JSON property expectedOrigins

Returns:

  • (Array<String>)


1245
1246
1247
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1245

def expected_origins
  @expected_origins
end

#nameString

Required. The name of the PasskeyConfig resource. Corresponds to the JSON property name

Returns:

  • (String)


1250
1251
1252
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1250

def name
  @name
end

#rp_idString

Required. The relying party ID for the purpose of passkeys verifications. This cannot be changed once created. Corresponds to the JSON property rpId

Returns:

  • (String)


1256
1257
1258
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1256

def rp_id
  @rp_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1263
1264
1265
1266
1267
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1263

def update!(**args)
  @expected_origins = args[:expected_origins] if args.key?(:expected_origins)
  @name = args[:name] if args.key?(:name)
  @rp_id = args[:rp_id] if args.key?(:rp_id)
end