google-apis-identitytoolkit_v2 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/identitytoolkit_v2/classes.rb +187 -531
- data/lib/google/apis/identitytoolkit_v2/gem_version.rb +2 -2
- data/lib/google/apis/identitytoolkit_v2/representations.rb +70 -269
- data/lib/google/apis/identitytoolkit_v2/service.rb +30 -121
- metadata +3 -3
@@ -308,6 +308,11 @@ module Google
|
|
308
308
|
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig]
|
309
309
|
attr_accessor :notification
|
310
310
|
|
311
|
+
# The configuration for the password policy on the project.
|
312
|
+
# Corresponds to the JSON property `passwordPolicyConfig`
|
313
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig]
|
314
|
+
attr_accessor :password_policy_config
|
315
|
+
|
311
316
|
# Configuration related to quotas.
|
312
317
|
# Corresponds to the JSON property `quota`
|
313
318
|
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig]
|
@@ -351,6 +356,7 @@ module Google
|
|
351
356
|
@multi_tenant = args[:multi_tenant] if args.key?(:multi_tenant)
|
352
357
|
@name = args[:name] if args.key?(:name)
|
353
358
|
@notification = args[:notification] if args.key?(:notification)
|
359
|
+
@password_policy_config = args[:password_policy_config] if args.key?(:password_policy_config)
|
354
360
|
@quota = args[:quota] if args.key?(:quota)
|
355
361
|
@recaptcha_config = args[:recaptcha_config] if args.key?(:recaptcha_config)
|
356
362
|
@sign_in = args[:sign_in] if args.key?(:sign_in)
|
@@ -359,6 +365,59 @@ module Google
|
|
359
365
|
end
|
360
366
|
end
|
361
367
|
|
368
|
+
# Custom strength options to enforce on user passwords.
|
369
|
+
class GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
|
370
|
+
include Google::Apis::Core::Hashable
|
371
|
+
|
372
|
+
# The password must contain a lower case character.
|
373
|
+
# Corresponds to the JSON property `containsLowercaseCharacter`
|
374
|
+
# @return [Boolean]
|
375
|
+
attr_accessor :contains_lowercase_character
|
376
|
+
alias_method :contains_lowercase_character?, :contains_lowercase_character
|
377
|
+
|
378
|
+
# The password must contain a non alpha numeric character.
|
379
|
+
# Corresponds to the JSON property `containsNonAlphanumericCharacter`
|
380
|
+
# @return [Boolean]
|
381
|
+
attr_accessor :contains_non_alphanumeric_character
|
382
|
+
alias_method :contains_non_alphanumeric_character?, :contains_non_alphanumeric_character
|
383
|
+
|
384
|
+
# The password must contain a number.
|
385
|
+
# Corresponds to the JSON property `containsNumericCharacter`
|
386
|
+
# @return [Boolean]
|
387
|
+
attr_accessor :contains_numeric_character
|
388
|
+
alias_method :contains_numeric_character?, :contains_numeric_character
|
389
|
+
|
390
|
+
# The password must contain an upper case character.
|
391
|
+
# Corresponds to the JSON property `containsUppercaseCharacter`
|
392
|
+
# @return [Boolean]
|
393
|
+
attr_accessor :contains_uppercase_character
|
394
|
+
alias_method :contains_uppercase_character?, :contains_uppercase_character
|
395
|
+
|
396
|
+
# Maximum password length. No default max length
|
397
|
+
# Corresponds to the JSON property `maxPasswordLength`
|
398
|
+
# @return [Fixnum]
|
399
|
+
attr_accessor :max_password_length
|
400
|
+
|
401
|
+
# Minimum password length. Range from 6 to 30
|
402
|
+
# Corresponds to the JSON property `minPasswordLength`
|
403
|
+
# @return [Fixnum]
|
404
|
+
attr_accessor :min_password_length
|
405
|
+
|
406
|
+
def initialize(**args)
|
407
|
+
update!(**args)
|
408
|
+
end
|
409
|
+
|
410
|
+
# Update properties of this object
|
411
|
+
def update!(**args)
|
412
|
+
@contains_lowercase_character = args[:contains_lowercase_character] if args.key?(:contains_lowercase_character)
|
413
|
+
@contains_non_alphanumeric_character = args[:contains_non_alphanumeric_character] if args.key?(:contains_non_alphanumeric_character)
|
414
|
+
@contains_numeric_character = args[:contains_numeric_character] if args.key?(:contains_numeric_character)
|
415
|
+
@contains_uppercase_character = args[:contains_uppercase_character] if args.key?(:contains_uppercase_character)
|
416
|
+
@max_password_length = args[:max_password_length] if args.key?(:max_password_length)
|
417
|
+
@min_password_length = args[:min_password_length] if args.key?(:min_password_length)
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
362
421
|
# Standard Identity Toolkit-trusted IDPs.
|
363
422
|
class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
|
364
423
|
include Google::Apis::Core::Hashable
|
@@ -1174,6 +1233,69 @@ module Google
|
|
1174
1233
|
end
|
1175
1234
|
end
|
1176
1235
|
|
1236
|
+
# The configuration for the password policy on the project.
|
1237
|
+
class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
|
1238
|
+
include Google::Apis::Core::Hashable
|
1239
|
+
|
1240
|
+
# Users must have a password compliant with the password policy to sign-in.
|
1241
|
+
# Corresponds to the JSON property `forceUpgradeOnSignin`
|
1242
|
+
# @return [Boolean]
|
1243
|
+
attr_accessor :force_upgrade_on_signin
|
1244
|
+
alias_method :force_upgrade_on_signin?, :force_upgrade_on_signin
|
1245
|
+
|
1246
|
+
# Output only. The last time the password policy on the project was updated.
|
1247
|
+
# Corresponds to the JSON property `lastUpdateTime`
|
1248
|
+
# @return [String]
|
1249
|
+
attr_accessor :last_update_time
|
1250
|
+
|
1251
|
+
# Which enforcement mode to use for the password policy.
|
1252
|
+
# Corresponds to the JSON property `passwordPolicyEnforcementState`
|
1253
|
+
# @return [String]
|
1254
|
+
attr_accessor :password_policy_enforcement_state
|
1255
|
+
|
1256
|
+
# Must be of length 1. Contains the strength attributes for the password policy.
|
1257
|
+
# Corresponds to the JSON property `passwordPolicyVersions`
|
1258
|
+
# @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion>]
|
1259
|
+
attr_accessor :password_policy_versions
|
1260
|
+
|
1261
|
+
def initialize(**args)
|
1262
|
+
update!(**args)
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
# Update properties of this object
|
1266
|
+
def update!(**args)
|
1267
|
+
@force_upgrade_on_signin = args[:force_upgrade_on_signin] if args.key?(:force_upgrade_on_signin)
|
1268
|
+
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
1269
|
+
@password_policy_enforcement_state = args[:password_policy_enforcement_state] if args.key?(:password_policy_enforcement_state)
|
1270
|
+
@password_policy_versions = args[:password_policy_versions] if args.key?(:password_policy_versions)
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# The strength attributes for the password policy on the project.
|
1275
|
+
class GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion
|
1276
|
+
include Google::Apis::Core::Hashable
|
1277
|
+
|
1278
|
+
# Custom strength options to enforce on user passwords.
|
1279
|
+
# Corresponds to the JSON property `customStrengthOptions`
|
1280
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions]
|
1281
|
+
attr_accessor :custom_strength_options
|
1282
|
+
|
1283
|
+
# Output only. schema version number for the password policy
|
1284
|
+
# Corresponds to the JSON property `schemaVersion`
|
1285
|
+
# @return [Fixnum]
|
1286
|
+
attr_accessor :schema_version
|
1287
|
+
|
1288
|
+
def initialize(**args)
|
1289
|
+
update!(**args)
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
# Update properties of this object
|
1293
|
+
def update!(**args)
|
1294
|
+
@custom_strength_options = args[:custom_strength_options] if args.key?(:custom_strength_options)
|
1295
|
+
@schema_version = args[:schema_version] if args.key?(:schema_version)
|
1296
|
+
end
|
1297
|
+
end
|
1298
|
+
|
1177
1299
|
# Configuration related to restricting a user's ability to affect their account.
|
1178
1300
|
class GoogleCloudIdentitytoolkitAdminV2Permissions
|
1179
1301
|
include Google::Apis::Core::Hashable
|
@@ -1832,6 +1954,11 @@ module Google
|
|
1832
1954
|
# @return [String]
|
1833
1955
|
attr_accessor :name
|
1834
1956
|
|
1957
|
+
# The configuration for the password policy on the project.
|
1958
|
+
# Corresponds to the JSON property `passwordPolicyConfig`
|
1959
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig]
|
1960
|
+
attr_accessor :password_policy_config
|
1961
|
+
|
1835
1962
|
# The reCAPTCHA Enterprise integration config.
|
1836
1963
|
# Corresponds to the JSON property `recaptchaConfig`
|
1837
1964
|
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig]
|
@@ -1870,6 +1997,7 @@ module Google
|
|
1870
1997
|
@mfa_config = args[:mfa_config] if args.key?(:mfa_config)
|
1871
1998
|
@monitoring = args[:monitoring] if args.key?(:monitoring)
|
1872
1999
|
@name = args[:name] if args.key?(:name)
|
2000
|
+
@password_policy_config = args[:password_policy_config] if args.key?(:password_policy_config)
|
1873
2001
|
@recaptcha_config = args[:recaptcha_config] if args.key?(:recaptcha_config)
|
1874
2002
|
@sms_region_config = args[:sms_region_config] if args.key?(:sms_region_config)
|
1875
2003
|
@test_phone_numbers = args[:test_phone_numbers] if args.key?(:test_phone_numbers)
|
@@ -1921,131 +2049,14 @@ module Google
|
|
1921
2049
|
end
|
1922
2050
|
end
|
1923
2051
|
|
1924
|
-
#
|
1925
|
-
class
|
1926
|
-
include Google::Apis::Core::Hashable
|
1927
|
-
|
1928
|
-
# The AuthenticatorData from the authenticator.
|
1929
|
-
# Corresponds to the JSON property `authenticatorData`
|
1930
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1931
|
-
# @return [String]
|
1932
|
-
attr_accessor :authenticator_data
|
1933
|
-
|
1934
|
-
# The CollectedClientData object from the authenticator.
|
1935
|
-
# Corresponds to the JSON property `clientDataJson`
|
1936
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1937
|
-
# @return [String]
|
1938
|
-
attr_accessor :client_data_json
|
1939
|
-
|
1940
|
-
# The signature from the authenticator.
|
1941
|
-
# Corresponds to the JSON property `signature`
|
1942
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1943
|
-
# @return [String]
|
1944
|
-
attr_accessor :signature
|
1945
|
-
|
1946
|
-
# The user handle.
|
1947
|
-
# Corresponds to the JSON property `userHandle`
|
1948
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1949
|
-
# @return [String]
|
1950
|
-
attr_accessor :user_handle
|
1951
|
-
|
1952
|
-
def initialize(**args)
|
1953
|
-
update!(**args)
|
1954
|
-
end
|
1955
|
-
|
1956
|
-
# Update properties of this object
|
1957
|
-
def update!(**args)
|
1958
|
-
@authenticator_data = args[:authenticator_data] if args.key?(:authenticator_data)
|
1959
|
-
@client_data_json = args[:client_data_json] if args.key?(:client_data_json)
|
1960
|
-
@signature = args[:signature] if args.key?(:signature)
|
1961
|
-
@user_handle = args[:user_handle] if args.key?(:user_handle)
|
1962
|
-
end
|
1963
|
-
end
|
1964
|
-
|
1965
|
-
# Attestation response from a FIDO authenticator.
|
1966
|
-
class GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse
|
1967
|
-
include Google::Apis::Core::Hashable
|
1968
|
-
|
1969
|
-
# The attestation object from the authenticator.
|
1970
|
-
# Corresponds to the JSON property `attestationObject`
|
1971
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1972
|
-
# @return [String]
|
1973
|
-
attr_accessor :attestation_object
|
1974
|
-
|
1975
|
-
# The CollectedClientData object from the authenticator.
|
1976
|
-
# Corresponds to the JSON property `clientDataJson`
|
1977
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1978
|
-
# @return [String]
|
1979
|
-
attr_accessor :client_data_json
|
1980
|
-
|
1981
|
-
# Authenticator transports that are supported by the authenticator.
|
1982
|
-
# Corresponds to the JSON property `transports`
|
1983
|
-
# @return [Array<String>]
|
1984
|
-
attr_accessor :transports
|
1985
|
-
|
1986
|
-
def initialize(**args)
|
1987
|
-
update!(**args)
|
1988
|
-
end
|
1989
|
-
|
1990
|
-
# Update properties of this object
|
1991
|
-
def update!(**args)
|
1992
|
-
@attestation_object = args[:attestation_object] if args.key?(:attestation_object)
|
1993
|
-
@client_data_json = args[:client_data_json] if args.key?(:client_data_json)
|
1994
|
-
@transports = args[:transports] if args.key?(:transports)
|
1995
|
-
end
|
1996
|
-
end
|
1997
|
-
|
1998
|
-
# Authenticator response to authenticate the user with an existing FIDO key.
|
1999
|
-
class GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse
|
2000
|
-
include Google::Apis::Core::Hashable
|
2001
|
-
|
2002
|
-
# Authentication response from a FIDO authenticator.
|
2003
|
-
# Corresponds to the JSON property `authenticatorAssertionResponse`
|
2004
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse]
|
2005
|
-
attr_accessor :authenticator_assertion_response
|
2006
|
-
|
2007
|
-
# Identifier for the authentication credential.
|
2008
|
-
# Corresponds to the JSON property `credentialId`
|
2009
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2010
|
-
# @return [String]
|
2011
|
-
attr_accessor :credential_id
|
2012
|
-
|
2013
|
-
# The type of public key.
|
2014
|
-
# Corresponds to the JSON property `credentialType`
|
2015
|
-
# @return [String]
|
2016
|
-
attr_accessor :credential_type
|
2017
|
-
|
2018
|
-
def initialize(**args)
|
2019
|
-
update!(**args)
|
2020
|
-
end
|
2021
|
-
|
2022
|
-
# Update properties of this object
|
2023
|
-
def update!(**args)
|
2024
|
-
@authenticator_assertion_response = args[:authenticator_assertion_response] if args.key?(:authenticator_assertion_response)
|
2025
|
-
@credential_id = args[:credential_id] if args.key?(:credential_id)
|
2026
|
-
@credential_type = args[:credential_type] if args.key?(:credential_type)
|
2027
|
-
end
|
2028
|
-
end
|
2029
|
-
|
2030
|
-
# Authenticator response to register a new FIDO key.
|
2031
|
-
class GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse
|
2052
|
+
# The information required to auto-retrieve an SMS.
|
2053
|
+
class GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
|
2032
2054
|
include Google::Apis::Core::Hashable
|
2033
2055
|
|
2034
|
-
#
|
2035
|
-
# Corresponds to the JSON property `
|
2036
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse]
|
2037
|
-
attr_accessor :authenticator_attestation_response
|
2038
|
-
|
2039
|
-
# Identifier for the registered credential.
|
2040
|
-
# Corresponds to the JSON property `credentialId`
|
2041
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2042
|
-
# @return [String]
|
2043
|
-
attr_accessor :credential_id
|
2044
|
-
|
2045
|
-
# The type of credential.
|
2046
|
-
# Corresponds to the JSON property `credentialType`
|
2056
|
+
# The Android app's signature hash for Google Play Service's SMS Retriever API.
|
2057
|
+
# Corresponds to the JSON property `appSignatureHash`
|
2047
2058
|
# @return [String]
|
2048
|
-
attr_accessor :
|
2059
|
+
attr_accessor :app_signature_hash
|
2049
2060
|
|
2050
2061
|
def initialize(**args)
|
2051
2062
|
update!(**args)
|
@@ -2053,52 +2064,47 @@ module Google
|
|
2053
2064
|
|
2054
2065
|
# Update properties of this object
|
2055
2066
|
def update!(**args)
|
2056
|
-
@
|
2057
|
-
@credential_id = args[:credential_id] if args.key?(:credential_id)
|
2058
|
-
@credential_type = args[:credential_type] if args.key?(:credential_type)
|
2067
|
+
@app_signature_hash = args[:app_signature_hash] if args.key?(:app_signature_hash)
|
2059
2068
|
end
|
2060
2069
|
end
|
2061
2070
|
|
2062
|
-
#
|
2063
|
-
class
|
2071
|
+
# Custom strength options to enforce on user passwords.
|
2072
|
+
class GoogleCloudIdentitytoolkitV2CustomStrengthOptions
|
2064
2073
|
include Google::Apis::Core::Hashable
|
2065
2074
|
|
2066
|
-
# The
|
2067
|
-
# Corresponds to the JSON property `
|
2068
|
-
# @return [String]
|
2069
|
-
attr_accessor :authenticator_attachment
|
2070
|
-
|
2071
|
-
# Whether resident key is required.
|
2072
|
-
# Corresponds to the JSON property `requireResidentKey`
|
2075
|
+
# The password must contain a lower case character.
|
2076
|
+
# Corresponds to the JSON property `containsLowercaseCharacter`
|
2073
2077
|
# @return [Boolean]
|
2074
|
-
attr_accessor :
|
2075
|
-
alias_method :
|
2078
|
+
attr_accessor :contains_lowercase_character
|
2079
|
+
alias_method :contains_lowercase_character?, :contains_lowercase_character
|
2076
2080
|
|
2077
|
-
# The
|
2078
|
-
# Corresponds to the JSON property `
|
2079
|
-
# @return [
|
2080
|
-
attr_accessor :
|
2081
|
+
# The password must contain a non alpha numeric character.
|
2082
|
+
# Corresponds to the JSON property `containsNonAlphanumericCharacter`
|
2083
|
+
# @return [Boolean]
|
2084
|
+
attr_accessor :contains_non_alphanumeric_character
|
2085
|
+
alias_method :contains_non_alphanumeric_character?, :contains_non_alphanumeric_character
|
2081
2086
|
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2087
|
+
# The password must contain a number.
|
2088
|
+
# Corresponds to the JSON property `containsNumericCharacter`
|
2089
|
+
# @return [Boolean]
|
2090
|
+
attr_accessor :contains_numeric_character
|
2091
|
+
alias_method :contains_numeric_character?, :contains_numeric_character
|
2085
2092
|
|
2086
|
-
#
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
end
|
2092
|
-
end
|
2093
|
+
# The password must contain an upper case character.
|
2094
|
+
# Corresponds to the JSON property `containsUppercaseCharacter`
|
2095
|
+
# @return [Boolean]
|
2096
|
+
attr_accessor :contains_uppercase_character
|
2097
|
+
alias_method :contains_uppercase_character?, :contains_uppercase_character
|
2093
2098
|
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2099
|
+
# Maximum password length. No default max length
|
2100
|
+
# Corresponds to the JSON property `maxPasswordLength`
|
2101
|
+
# @return [Fixnum]
|
2102
|
+
attr_accessor :max_password_length
|
2097
2103
|
|
2098
|
-
#
|
2099
|
-
# Corresponds to the JSON property `
|
2100
|
-
# @return [
|
2101
|
-
attr_accessor :
|
2104
|
+
# Minimum password length. Range from 6 to 30
|
2105
|
+
# Corresponds to the JSON property `minPasswordLength`
|
2106
|
+
# @return [Fixnum]
|
2107
|
+
attr_accessor :min_password_length
|
2102
2108
|
|
2103
2109
|
def initialize(**args)
|
2104
2110
|
update!(**args)
|
@@ -2106,7 +2112,12 @@ module Google
|
|
2106
2112
|
|
2107
2113
|
# Update properties of this object
|
2108
2114
|
def update!(**args)
|
2109
|
-
@
|
2115
|
+
@contains_lowercase_character = args[:contains_lowercase_character] if args.key?(:contains_lowercase_character)
|
2116
|
+
@contains_non_alphanumeric_character = args[:contains_non_alphanumeric_character] if args.key?(:contains_non_alphanumeric_character)
|
2117
|
+
@contains_numeric_character = args[:contains_numeric_character] if args.key?(:contains_numeric_character)
|
2118
|
+
@contains_uppercase_character = args[:contains_uppercase_character] if args.key?(:contains_uppercase_character)
|
2119
|
+
@max_password_length = args[:max_password_length] if args.key?(:max_password_length)
|
2120
|
+
@min_password_length = args[:min_password_length] if args.key?(:min_password_length)
|
2110
2121
|
end
|
2111
2122
|
end
|
2112
2123
|
|
@@ -2373,122 +2384,6 @@ module Google
|
|
2373
2384
|
end
|
2374
2385
|
end
|
2375
2386
|
|
2376
|
-
# FinalizePasskeyEnrollment request. Registers passkey as a first factor for the
|
2377
|
-
# user.
|
2378
|
-
class GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest
|
2379
|
-
include Google::Apis::Core::Hashable
|
2380
|
-
|
2381
|
-
# Authenticator response to register a new FIDO key.
|
2382
|
-
# Corresponds to the JSON property `authenticatorRegistrationResponse`
|
2383
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse]
|
2384
|
-
attr_accessor :authenticator_registration_response
|
2385
|
-
|
2386
|
-
# Required. The GCIP ID token of the signed-in user
|
2387
|
-
# Corresponds to the JSON property `idToken`
|
2388
|
-
# @return [String]
|
2389
|
-
attr_accessor :id_token
|
2390
|
-
|
2391
|
-
# Optional. The ID of the Identity Platform tenant the user is signing in to. If
|
2392
|
-
# not set, the user will sign in to the default Identity Platform project.
|
2393
|
-
# Corresponds to the JSON property `tenantId`
|
2394
|
-
# @return [String]
|
2395
|
-
attr_accessor :tenant_id
|
2396
|
-
|
2397
|
-
def initialize(**args)
|
2398
|
-
update!(**args)
|
2399
|
-
end
|
2400
|
-
|
2401
|
-
# Update properties of this object
|
2402
|
-
def update!(**args)
|
2403
|
-
@authenticator_registration_response = args[:authenticator_registration_response] if args.key?(:authenticator_registration_response)
|
2404
|
-
@id_token = args[:id_token] if args.key?(:id_token)
|
2405
|
-
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
2406
|
-
end
|
2407
|
-
end
|
2408
|
-
|
2409
|
-
# FinalizePasskeyEnrollment response.
|
2410
|
-
class GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse
|
2411
|
-
include Google::Apis::Core::Hashable
|
2412
|
-
|
2413
|
-
# ID token for the authenticated user.
|
2414
|
-
# Corresponds to the JSON property `idToken`
|
2415
|
-
# @return [String]
|
2416
|
-
attr_accessor :id_token
|
2417
|
-
|
2418
|
-
# Refresh token for the authenticated user.
|
2419
|
-
# Corresponds to the JSON property `refreshToken`
|
2420
|
-
# @return [String]
|
2421
|
-
attr_accessor :refresh_token
|
2422
|
-
|
2423
|
-
def initialize(**args)
|
2424
|
-
update!(**args)
|
2425
|
-
end
|
2426
|
-
|
2427
|
-
# Update properties of this object
|
2428
|
-
def update!(**args)
|
2429
|
-
@id_token = args[:id_token] if args.key?(:id_token)
|
2430
|
-
@refresh_token = args[:refresh_token] if args.key?(:refresh_token)
|
2431
|
-
end
|
2432
|
-
end
|
2433
|
-
|
2434
|
-
# Request to finalize a passkey sign-in.
|
2435
|
-
class GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest
|
2436
|
-
include Google::Apis::Core::Hashable
|
2437
|
-
|
2438
|
-
# Authenticator response to authenticate the user with an existing FIDO key.
|
2439
|
-
# Corresponds to the JSON property `authenticatorAuthenticationResponse`
|
2440
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse]
|
2441
|
-
attr_accessor :authenticator_authentication_response
|
2442
|
-
|
2443
|
-
# Optional. The session ID that was passed into StartPasskeySignIn, if any.
|
2444
|
-
# Corresponds to the JSON property `sessionId`
|
2445
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2446
|
-
# @return [String]
|
2447
|
-
attr_accessor :session_id
|
2448
|
-
|
2449
|
-
# Optional. The ID of the Identity Platform tenant the user is signing in to. If
|
2450
|
-
# not set, the user will sign in to the default Identity Platform project.
|
2451
|
-
# Corresponds to the JSON property `tenantId`
|
2452
|
-
# @return [String]
|
2453
|
-
attr_accessor :tenant_id
|
2454
|
-
|
2455
|
-
def initialize(**args)
|
2456
|
-
update!(**args)
|
2457
|
-
end
|
2458
|
-
|
2459
|
-
# Update properties of this object
|
2460
|
-
def update!(**args)
|
2461
|
-
@authenticator_authentication_response = args[:authenticator_authentication_response] if args.key?(:authenticator_authentication_response)
|
2462
|
-
@session_id = args[:session_id] if args.key?(:session_id)
|
2463
|
-
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
2464
|
-
end
|
2465
|
-
end
|
2466
|
-
|
2467
|
-
# Response for FinalizePasskeySignIn.
|
2468
|
-
class GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse
|
2469
|
-
include Google::Apis::Core::Hashable
|
2470
|
-
|
2471
|
-
# ID token for the authenticated user.
|
2472
|
-
# Corresponds to the JSON property `idToken`
|
2473
|
-
# @return [String]
|
2474
|
-
attr_accessor :id_token
|
2475
|
-
|
2476
|
-
# Refresh token for the authenticated user.
|
2477
|
-
# Corresponds to the JSON property `refreshToken`
|
2478
|
-
# @return [String]
|
2479
|
-
attr_accessor :refresh_token
|
2480
|
-
|
2481
|
-
def initialize(**args)
|
2482
|
-
update!(**args)
|
2483
|
-
end
|
2484
|
-
|
2485
|
-
# Update properties of this object
|
2486
|
-
def update!(**args)
|
2487
|
-
@id_token = args[:id_token] if args.key?(:id_token)
|
2488
|
-
@refresh_token = args[:refresh_token] if args.key?(:refresh_token)
|
2489
|
-
end
|
2490
|
-
end
|
2491
|
-
|
2492
2387
|
# TOTP verification info for FinalizeMfaSignInRequest.
|
2493
2388
|
class GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo
|
2494
2389
|
include Google::Apis::Core::Hashable
|
@@ -2508,101 +2403,24 @@ module Google
|
|
2508
2403
|
end
|
2509
2404
|
end
|
2510
2405
|
|
2511
|
-
#
|
2512
|
-
class
|
2513
|
-
include Google::Apis::Core::Hashable
|
2514
|
-
|
2515
|
-
# Criteria for the authenticator to create a registered FIDO key.
|
2516
|
-
# Corresponds to the JSON property `authenticatorSelection`
|
2517
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria]
|
2518
|
-
attr_accessor :authenticator_selection
|
2519
|
-
|
2520
|
-
# The FIDO challenge.
|
2521
|
-
# Corresponds to the JSON property `challenge`
|
2522
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2523
|
-
# @return [String]
|
2524
|
-
attr_accessor :challenge
|
2525
|
-
|
2526
|
-
# Credentials already mapped to this user.
|
2527
|
-
# Corresponds to the JSON property `excludeCredentials`
|
2528
|
-
# @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor>]
|
2529
|
-
attr_accessor :exclude_credentials
|
2530
|
-
|
2531
|
-
# Lists the supported key types and signature algorithms.
|
2532
|
-
# Corresponds to the JSON property `pubKeyCredParams`
|
2533
|
-
# @return [Array<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters>]
|
2534
|
-
attr_accessor :pub_key_cred_params
|
2535
|
-
|
2536
|
-
# The entity object for the Relying Party.
|
2537
|
-
# Corresponds to the JSON property `rp`
|
2538
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RpEntity]
|
2539
|
-
attr_accessor :rp
|
2540
|
-
|
2541
|
-
# The entity object for the user.
|
2542
|
-
# Corresponds to the JSON property `user`
|
2543
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2UserEntity]
|
2544
|
-
attr_accessor :user
|
2545
|
-
|
2546
|
-
def initialize(**args)
|
2547
|
-
update!(**args)
|
2548
|
-
end
|
2549
|
-
|
2550
|
-
# Update properties of this object
|
2551
|
-
def update!(**args)
|
2552
|
-
@authenticator_selection = args[:authenticator_selection] if args.key?(:authenticator_selection)
|
2553
|
-
@challenge = args[:challenge] if args.key?(:challenge)
|
2554
|
-
@exclude_credentials = args[:exclude_credentials] if args.key?(:exclude_credentials)
|
2555
|
-
@pub_key_cred_params = args[:pub_key_cred_params] if args.key?(:pub_key_cred_params)
|
2556
|
-
@rp = args[:rp] if args.key?(:rp)
|
2557
|
-
@user = args[:user] if args.key?(:user)
|
2558
|
-
end
|
2559
|
-
end
|
2560
|
-
|
2561
|
-
# Descriptor for a public key credential.
|
2562
|
-
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor
|
2406
|
+
# Configuration for password policy.
|
2407
|
+
class GoogleCloudIdentitytoolkitV2PasswordPolicy
|
2563
2408
|
include Google::Apis::Core::Hashable
|
2564
2409
|
|
2565
|
-
#
|
2566
|
-
# Corresponds to the JSON property `
|
2567
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2568
|
-
# @return [String]
|
2569
|
-
attr_accessor :credential_id
|
2570
|
-
|
2571
|
-
# The type of public key.
|
2572
|
-
# Corresponds to the JSON property `credentialType`
|
2573
|
-
# @return [String]
|
2574
|
-
attr_accessor :credential_type
|
2575
|
-
|
2576
|
-
# Authenticator transports that are supported by the authenticator.
|
2577
|
-
# Corresponds to the JSON property `transports`
|
2410
|
+
# Output only. Allowed characters which satisfy the non_alphanumeric requirement.
|
2411
|
+
# Corresponds to the JSON property `allowedNonAlphanumericCharacters`
|
2578
2412
|
# @return [Array<String>]
|
2579
|
-
attr_accessor :
|
2580
|
-
|
2581
|
-
def initialize(**args)
|
2582
|
-
update!(**args)
|
2583
|
-
end
|
2584
|
-
|
2585
|
-
# Update properties of this object
|
2586
|
-
def update!(**args)
|
2587
|
-
@credential_id = args[:credential_id] if args.key?(:credential_id)
|
2588
|
-
@credential_type = args[:credential_type] if args.key?(:credential_type)
|
2589
|
-
@transports = args[:transports] if args.key?(:transports)
|
2590
|
-
end
|
2591
|
-
end
|
2413
|
+
attr_accessor :allowed_non_alphanumeric_characters
|
2592
2414
|
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2415
|
+
# Custom strength options to enforce on user passwords.
|
2416
|
+
# Corresponds to the JSON property `customStrengthOptions`
|
2417
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2CustomStrengthOptions]
|
2418
|
+
attr_accessor :custom_strength_options
|
2596
2419
|
|
2597
|
-
#
|
2598
|
-
# Corresponds to the JSON property `
|
2420
|
+
# Output only. schema version number for the password policy
|
2421
|
+
# Corresponds to the JSON property `schemaVersion`
|
2599
2422
|
# @return [Fixnum]
|
2600
|
-
attr_accessor :
|
2601
|
-
|
2602
|
-
# The type of public key to be created.
|
2603
|
-
# Corresponds to the JSON property `credentialType`
|
2604
|
-
# @return [String]
|
2605
|
-
attr_accessor :credential_type
|
2423
|
+
attr_accessor :schema_version
|
2606
2424
|
|
2607
2425
|
def initialize(**args)
|
2608
2426
|
update!(**args)
|
@@ -2610,40 +2428,9 @@ module Google
|
|
2610
2428
|
|
2611
2429
|
# Update properties of this object
|
2612
2430
|
def update!(**args)
|
2613
|
-
@
|
2614
|
-
@
|
2615
|
-
|
2616
|
-
end
|
2617
|
-
|
2618
|
-
# Parameters for signing a challenge with a FIDO key.
|
2619
|
-
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions
|
2620
|
-
include Google::Apis::Core::Hashable
|
2621
|
-
|
2622
|
-
# The FIDO challenge.
|
2623
|
-
# Corresponds to the JSON property `challenge`
|
2624
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2625
|
-
# @return [String]
|
2626
|
-
attr_accessor :challenge
|
2627
|
-
|
2628
|
-
# The relying party identifier.
|
2629
|
-
# Corresponds to the JSON property `rpId`
|
2630
|
-
# @return [String]
|
2631
|
-
attr_accessor :rp_id
|
2632
|
-
|
2633
|
-
# The requirements regarding user verification.
|
2634
|
-
# Corresponds to the JSON property `userVerification`
|
2635
|
-
# @return [String]
|
2636
|
-
attr_accessor :user_verification
|
2637
|
-
|
2638
|
-
def initialize(**args)
|
2639
|
-
update!(**args)
|
2640
|
-
end
|
2641
|
-
|
2642
|
-
# Update properties of this object
|
2643
|
-
def update!(**args)
|
2644
|
-
@challenge = args[:challenge] if args.key?(:challenge)
|
2645
|
-
@rp_id = args[:rp_id] if args.key?(:rp_id)
|
2646
|
-
@user_verification = args[:user_verification] if args.key?(:user_verification)
|
2431
|
+
@allowed_non_alphanumeric_characters = args[:allowed_non_alphanumeric_characters] if args.key?(:allowed_non_alphanumeric_characters)
|
2432
|
+
@custom_strength_options = args[:custom_strength_options] if args.key?(:custom_strength_options)
|
2433
|
+
@schema_version = args[:schema_version] if args.key?(:schema_version)
|
2647
2434
|
end
|
2648
2435
|
end
|
2649
2436
|
|
@@ -2658,7 +2445,8 @@ module Google
|
|
2658
2445
|
attr_accessor :recaptcha_enforcement_state
|
2659
2446
|
|
2660
2447
|
# The reCAPTCHA Enterprise key resource name, e.g. "projects/`project`/keys/`key`
|
2661
|
-
# ".
|
2448
|
+
# ". This will only be returned when the reCAPTCHA enforcement state is AUDIT or
|
2449
|
+
# ENFORCE on at least one of the reCAPTCHA providers.
|
2662
2450
|
# Corresponds to the JSON property `recaptchaKey`
|
2663
2451
|
# @return [String]
|
2664
2452
|
attr_accessor :recaptcha_key
|
@@ -2719,7 +2507,7 @@ module Google
|
|
2719
2507
|
|
2720
2508
|
# The redirect URI provided in the initial authorization request made by the
|
2721
2509
|
# client to the IDP. The URI must use the HTTPS protocol, include a domain name,
|
2722
|
-
# and can
|
2510
|
+
# and can't contain an IP address or localhost. Required if token_type is CODE.
|
2723
2511
|
# Corresponds to the JSON property `redirectUri`
|
2724
2512
|
# @return [String]
|
2725
2513
|
attr_accessor :redirect_uri
|
@@ -2770,25 +2558,6 @@ module Google
|
|
2770
2558
|
end
|
2771
2559
|
end
|
2772
2560
|
|
2773
|
-
# The entity object for the Relying Party.
|
2774
|
-
class GoogleCloudIdentitytoolkitV2RpEntity
|
2775
|
-
include Google::Apis::Core::Hashable
|
2776
|
-
|
2777
|
-
# The RP ID of the FIDO Relying Party.
|
2778
|
-
# Corresponds to the JSON property `id`
|
2779
|
-
# @return [String]
|
2780
|
-
attr_accessor :id
|
2781
|
-
|
2782
|
-
def initialize(**args)
|
2783
|
-
update!(**args)
|
2784
|
-
end
|
2785
|
-
|
2786
|
-
# Update properties of this object
|
2787
|
-
def update!(**args)
|
2788
|
-
@id = args[:id] if args.key?(:id)
|
2789
|
-
end
|
2790
|
-
end
|
2791
|
-
|
2792
2561
|
# Sends MFA enrollment verification SMS for a user.
|
2793
2562
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
2794
2563
|
include Google::Apis::Core::Hashable
|
@@ -3055,119 +2824,6 @@ module Google
|
|
3055
2824
|
end
|
3056
2825
|
end
|
3057
2826
|
|
3058
|
-
# Starts passkey enrollment for passkey as a first factor by returning the FIDO
|
3059
|
-
# challenge.
|
3060
|
-
class GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest
|
3061
|
-
include Google::Apis::Core::Hashable
|
3062
|
-
|
3063
|
-
# Required. The GCIP ID token of the signed-in user
|
3064
|
-
# Corresponds to the JSON property `idToken`
|
3065
|
-
# @return [String]
|
3066
|
-
attr_accessor :id_token
|
3067
|
-
|
3068
|
-
# Optional. The ID of the Identity Platform tenant the user is signing in to. If
|
3069
|
-
# not set, the user will sign in to the default Identity Platform project.
|
3070
|
-
# Corresponds to the JSON property `tenantId`
|
3071
|
-
# @return [String]
|
3072
|
-
attr_accessor :tenant_id
|
3073
|
-
|
3074
|
-
def initialize(**args)
|
3075
|
-
update!(**args)
|
3076
|
-
end
|
3077
|
-
|
3078
|
-
# Update properties of this object
|
3079
|
-
def update!(**args)
|
3080
|
-
@id_token = args[:id_token] if args.key?(:id_token)
|
3081
|
-
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
3082
|
-
end
|
3083
|
-
end
|
3084
|
-
|
3085
|
-
# StartPasskeyEnrollment response.
|
3086
|
-
class GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse
|
3087
|
-
include Google::Apis::Core::Hashable
|
3088
|
-
|
3089
|
-
# Parameters for creating a FIDO key.
|
3090
|
-
# Corresponds to the JSON property `credentialCreationOptions`
|
3091
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions]
|
3092
|
-
attr_accessor :credential_creation_options
|
3093
|
-
|
3094
|
-
def initialize(**args)
|
3095
|
-
update!(**args)
|
3096
|
-
end
|
3097
|
-
|
3098
|
-
# Update properties of this object
|
3099
|
-
def update!(**args)
|
3100
|
-
@credential_creation_options = args[:credential_creation_options] if args.key?(:credential_creation_options)
|
3101
|
-
end
|
3102
|
-
end
|
3103
|
-
|
3104
|
-
# Starts passkey sign-in by returning the FIDO challenge.
|
3105
|
-
class GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest
|
3106
|
-
include Google::Apis::Core::Hashable
|
3107
|
-
|
3108
|
-
# Optional. The developer can bind their own concept of a user session to this
|
3109
|
-
# flow.
|
3110
|
-
# Corresponds to the JSON property `sessionId`
|
3111
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
3112
|
-
# @return [String]
|
3113
|
-
attr_accessor :session_id
|
3114
|
-
|
3115
|
-
# Optional. The ID of the Identity Platform tenant the user is signing in to. If
|
3116
|
-
# not set, the user will sign in to the default Identity Platform project.
|
3117
|
-
# Corresponds to the JSON property `tenantId`
|
3118
|
-
# @return [String]
|
3119
|
-
attr_accessor :tenant_id
|
3120
|
-
|
3121
|
-
def initialize(**args)
|
3122
|
-
update!(**args)
|
3123
|
-
end
|
3124
|
-
|
3125
|
-
# Update properties of this object
|
3126
|
-
def update!(**args)
|
3127
|
-
@session_id = args[:session_id] if args.key?(:session_id)
|
3128
|
-
@tenant_id = args[:tenant_id] if args.key?(:tenant_id)
|
3129
|
-
end
|
3130
|
-
end
|
3131
|
-
|
3132
|
-
# Response for StartPasskeySignIn.
|
3133
|
-
class GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse
|
3134
|
-
include Google::Apis::Core::Hashable
|
3135
|
-
|
3136
|
-
# Parameters for signing a challenge with a FIDO key.
|
3137
|
-
# Corresponds to the JSON property `credentialRequestOptions`
|
3138
|
-
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions]
|
3139
|
-
attr_accessor :credential_request_options
|
3140
|
-
|
3141
|
-
def initialize(**args)
|
3142
|
-
update!(**args)
|
3143
|
-
end
|
3144
|
-
|
3145
|
-
# Update properties of this object
|
3146
|
-
def update!(**args)
|
3147
|
-
@credential_request_options = args[:credential_request_options] if args.key?(:credential_request_options)
|
3148
|
-
end
|
3149
|
-
end
|
3150
|
-
|
3151
|
-
# The entity object for the user.
|
3152
|
-
class GoogleCloudIdentitytoolkitV2UserEntity
|
3153
|
-
include Google::Apis::Core::Hashable
|
3154
|
-
|
3155
|
-
# The user ID.
|
3156
|
-
# Corresponds to the JSON property `id`
|
3157
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
3158
|
-
# @return [String]
|
3159
|
-
attr_accessor :id
|
3160
|
-
|
3161
|
-
def initialize(**args)
|
3162
|
-
update!(**args)
|
3163
|
-
end
|
3164
|
-
|
3165
|
-
# Update properties of this object
|
3166
|
-
def update!(**args)
|
3167
|
-
@id = args[:id] if args.key?(:id)
|
3168
|
-
end
|
3169
|
-
end
|
3170
|
-
|
3171
2827
|
# Withdraws MFA.
|
3172
2828
|
class GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
|
3173
2829
|
include Google::Apis::Core::Hashable
|