google-apis-identitytoolkit_v2 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/identitytoolkit_v2/classes.rb +557 -0
- data/lib/google/apis/identitytoolkit_v2/gem_version.rb +2 -2
- data/lib/google/apis/identitytoolkit_v2/representations.rb +287 -0
- data/lib/google/apis/identitytoolkit_v2/service.rb +121 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07dd0f97cfaa99eeda59967278cc412ad64e532935ede0d7dd281c62efb9f9c5
|
4
|
+
data.tar.gz: 12a48800c48c1fc9546ea3b2f6d7e1faacbc679dbe34101f7f9dd5f4594dfcca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76953aec7bb9cd7a0031c8537670de5eee930c03bfb414873c9ffea52c6bf88dd75b42b452dc7b8cbe1134126fd53acc3e6942557c1a3b6eae1c32d12335ba77
|
7
|
+
data.tar.gz: 9d363c866ca724cc996f8f58d918c0b838a5c89b12ae83979598aff7b5c976977ce5efb2a3f7f65fcea755986b47796f90c0961a971acec2ef18274c04d7b131
|
data/CHANGELOG.md
CHANGED
@@ -1921,6 +1921,176 @@ module Google
|
|
1921
1921
|
end
|
1922
1922
|
end
|
1923
1923
|
|
1924
|
+
# Authentication response from a FIDO authenticator.
|
1925
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse
|
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
|
2032
|
+
include Google::Apis::Core::Hashable
|
2033
|
+
|
2034
|
+
# Attestation response from a FIDO authenticator.
|
2035
|
+
# Corresponds to the JSON property `authenticatorAttestationResponse`
|
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`
|
2047
|
+
# @return [String]
|
2048
|
+
attr_accessor :credential_type
|
2049
|
+
|
2050
|
+
def initialize(**args)
|
2051
|
+
update!(**args)
|
2052
|
+
end
|
2053
|
+
|
2054
|
+
# Update properties of this object
|
2055
|
+
def update!(**args)
|
2056
|
+
@authenticator_attestation_response = args[:authenticator_attestation_response] if args.key?(:authenticator_attestation_response)
|
2057
|
+
@credential_id = args[:credential_id] if args.key?(:credential_id)
|
2058
|
+
@credential_type = args[:credential_type] if args.key?(:credential_type)
|
2059
|
+
end
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
# Criteria for the authenticator to create a registered FIDO key.
|
2063
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria
|
2064
|
+
include Google::Apis::Core::Hashable
|
2065
|
+
|
2066
|
+
# The preferred authenticator attachment modality.
|
2067
|
+
# Corresponds to the JSON property `authenticatorAttachment`
|
2068
|
+
# @return [String]
|
2069
|
+
attr_accessor :authenticator_attachment
|
2070
|
+
|
2071
|
+
# Whether resident key is required.
|
2072
|
+
# Corresponds to the JSON property `requireResidentKey`
|
2073
|
+
# @return [Boolean]
|
2074
|
+
attr_accessor :require_resident_key
|
2075
|
+
alias_method :require_resident_key?, :require_resident_key
|
2076
|
+
|
2077
|
+
# The Relying Party's user verification requirements.
|
2078
|
+
# Corresponds to the JSON property `userVerification`
|
2079
|
+
# @return [String]
|
2080
|
+
attr_accessor :user_verification
|
2081
|
+
|
2082
|
+
def initialize(**args)
|
2083
|
+
update!(**args)
|
2084
|
+
end
|
2085
|
+
|
2086
|
+
# Update properties of this object
|
2087
|
+
def update!(**args)
|
2088
|
+
@authenticator_attachment = args[:authenticator_attachment] if args.key?(:authenticator_attachment)
|
2089
|
+
@require_resident_key = args[:require_resident_key] if args.key?(:require_resident_key)
|
2090
|
+
@user_verification = args[:user_verification] if args.key?(:user_verification)
|
2091
|
+
end
|
2092
|
+
end
|
2093
|
+
|
1924
2094
|
# The information required to auto-retrieve an SMS.
|
1925
2095
|
class GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
|
1926
2096
|
include Google::Apis::Core::Hashable
|
@@ -2203,6 +2373,122 @@ module Google
|
|
2203
2373
|
end
|
2204
2374
|
end
|
2205
2375
|
|
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
|
+
|
2206
2492
|
# TOTP verification info for FinalizeMfaSignInRequest.
|
2207
2493
|
class GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo
|
2208
2494
|
include Google::Apis::Core::Hashable
|
@@ -2222,6 +2508,145 @@ module Google
|
|
2222
2508
|
end
|
2223
2509
|
end
|
2224
2510
|
|
2511
|
+
# Parameters for creating a FIDO key.
|
2512
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions
|
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
|
2563
|
+
include Google::Apis::Core::Hashable
|
2564
|
+
|
2565
|
+
# The identifier for the credential.
|
2566
|
+
# Corresponds to the JSON property `credentialId`
|
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`
|
2578
|
+
# @return [Array<String>]
|
2579
|
+
attr_accessor :transports
|
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
|
2592
|
+
|
2593
|
+
# Parameters to create a public credential.
|
2594
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters
|
2595
|
+
include Google::Apis::Core::Hashable
|
2596
|
+
|
2597
|
+
# The COSE registry number of the cryptographic signature algorithm.
|
2598
|
+
# Corresponds to the JSON property `alg`
|
2599
|
+
# @return [Fixnum]
|
2600
|
+
attr_accessor :alg
|
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
|
2606
|
+
|
2607
|
+
def initialize(**args)
|
2608
|
+
update!(**args)
|
2609
|
+
end
|
2610
|
+
|
2611
|
+
# Update properties of this object
|
2612
|
+
def update!(**args)
|
2613
|
+
@alg = args[:alg] if args.key?(:alg)
|
2614
|
+
@credential_type = args[:credential_type] if args.key?(:credential_type)
|
2615
|
+
end
|
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)
|
2647
|
+
end
|
2648
|
+
end
|
2649
|
+
|
2225
2650
|
# Configuration for reCAPTCHA
|
2226
2651
|
class GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
2227
2652
|
include Google::Apis::Core::Hashable
|
@@ -2345,6 +2770,25 @@ module Google
|
|
2345
2770
|
end
|
2346
2771
|
end
|
2347
2772
|
|
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
|
+
|
2348
2792
|
# Sends MFA enrollment verification SMS for a user.
|
2349
2793
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
2350
2794
|
include Google::Apis::Core::Hashable
|
@@ -2611,6 +3055,119 @@ module Google
|
|
2611
3055
|
end
|
2612
3056
|
end
|
2613
3057
|
|
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
|
+
|
2614
3171
|
# Withdraws MFA.
|
2615
3172
|
class GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
|
2616
3173
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module IdentitytoolkitV2
|
18
18
|
# Version of the google-apis-identitytoolkit_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230414"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -352,6 +352,36 @@ module Google
|
|
352
352
|
include Google::Apis::Core::JsonObjectSupport
|
353
353
|
end
|
354
354
|
|
355
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
361
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
367
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
373
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
379
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
355
385
|
class GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
|
356
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
387
|
|
@@ -406,12 +436,60 @@ module Google
|
|
406
436
|
include Google::Apis::Core::JsonObjectSupport
|
407
437
|
end
|
408
438
|
|
439
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
445
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
+
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
449
|
+
end
|
450
|
+
|
451
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
|
+
|
454
|
+
include Google::Apis::Core::JsonObjectSupport
|
455
|
+
end
|
456
|
+
|
457
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
409
463
|
class GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo
|
410
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
465
|
|
412
466
|
include Google::Apis::Core::JsonObjectSupport
|
413
467
|
end
|
414
468
|
|
469
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
475
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
|
+
|
478
|
+
include Google::Apis::Core::JsonObjectSupport
|
479
|
+
end
|
480
|
+
|
481
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
+
|
484
|
+
include Google::Apis::Core::JsonObjectSupport
|
485
|
+
end
|
486
|
+
|
487
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
+
|
490
|
+
include Google::Apis::Core::JsonObjectSupport
|
491
|
+
end
|
492
|
+
|
415
493
|
class GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
416
494
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
495
|
|
@@ -436,6 +514,12 @@ module Google
|
|
436
514
|
include Google::Apis::Core::JsonObjectSupport
|
437
515
|
end
|
438
516
|
|
517
|
+
class GoogleCloudIdentitytoolkitV2RpEntity
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
|
+
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
521
|
+
end
|
522
|
+
|
439
523
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
440
524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
525
|
|
@@ -484,6 +568,36 @@ module Google
|
|
484
568
|
include Google::Apis::Core::JsonObjectSupport
|
485
569
|
end
|
486
570
|
|
571
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
|
+
|
574
|
+
include Google::Apis::Core::JsonObjectSupport
|
575
|
+
end
|
576
|
+
|
577
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse
|
578
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
579
|
+
|
580
|
+
include Google::Apis::Core::JsonObjectSupport
|
581
|
+
end
|
582
|
+
|
583
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
585
|
+
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
587
|
+
end
|
588
|
+
|
589
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse
|
590
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
591
|
+
|
592
|
+
include Google::Apis::Core::JsonObjectSupport
|
593
|
+
end
|
594
|
+
|
595
|
+
class GoogleCloudIdentitytoolkitV2UserEntity
|
596
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
|
+
|
598
|
+
include Google::Apis::Core::JsonObjectSupport
|
599
|
+
end
|
600
|
+
|
487
601
|
class GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
|
488
602
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
603
|
|
@@ -1118,6 +1232,54 @@ module Google
|
|
1118
1232
|
end
|
1119
1233
|
end
|
1120
1234
|
|
1235
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse
|
1236
|
+
# @private
|
1237
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1238
|
+
property :authenticator_data, :base64 => true, as: 'authenticatorData'
|
1239
|
+
property :client_data_json, :base64 => true, as: 'clientDataJson'
|
1240
|
+
property :signature, :base64 => true, as: 'signature'
|
1241
|
+
property :user_handle, :base64 => true, as: 'userHandle'
|
1242
|
+
end
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse
|
1246
|
+
# @private
|
1247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1248
|
+
property :attestation_object, :base64 => true, as: 'attestationObject'
|
1249
|
+
property :client_data_json, :base64 => true, as: 'clientDataJson'
|
1250
|
+
collection :transports, as: 'transports'
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse
|
1255
|
+
# @private
|
1256
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1257
|
+
property :authenticator_assertion_response, as: 'authenticatorAssertionResponse', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse::Representation
|
1258
|
+
|
1259
|
+
property :credential_id, :base64 => true, as: 'credentialId'
|
1260
|
+
property :credential_type, as: 'credentialType'
|
1261
|
+
end
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse
|
1265
|
+
# @private
|
1266
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1267
|
+
property :authenticator_attestation_response, as: 'authenticatorAttestationResponse', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse::Representation
|
1268
|
+
|
1269
|
+
property :credential_id, :base64 => true, as: 'credentialId'
|
1270
|
+
property :credential_type, as: 'credentialType'
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
class GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria
|
1275
|
+
# @private
|
1276
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1277
|
+
property :authenticator_attachment, as: 'authenticatorAttachment'
|
1278
|
+
property :require_resident_key, as: 'requireResidentKey'
|
1279
|
+
property :user_verification, as: 'userVerification'
|
1280
|
+
end
|
1281
|
+
end
|
1282
|
+
|
1121
1283
|
class GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
|
1122
1284
|
# @private
|
1123
1285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1206,6 +1368,42 @@ module Google
|
|
1206
1368
|
end
|
1207
1369
|
end
|
1208
1370
|
|
1371
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest
|
1372
|
+
# @private
|
1373
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1374
|
+
property :authenticator_registration_response, as: 'authenticatorRegistrationResponse', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse::Representation
|
1375
|
+
|
1376
|
+
property :id_token, as: 'idToken'
|
1377
|
+
property :tenant_id, as: 'tenantId'
|
1378
|
+
end
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse
|
1382
|
+
# @private
|
1383
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1384
|
+
property :id_token, as: 'idToken'
|
1385
|
+
property :refresh_token, as: 'refreshToken'
|
1386
|
+
end
|
1387
|
+
end
|
1388
|
+
|
1389
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest
|
1390
|
+
# @private
|
1391
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1392
|
+
property :authenticator_authentication_response, as: 'authenticatorAuthenticationResponse', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse::Representation
|
1393
|
+
|
1394
|
+
property :session_id, :base64 => true, as: 'sessionId'
|
1395
|
+
property :tenant_id, as: 'tenantId'
|
1396
|
+
end
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
class GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse
|
1400
|
+
# @private
|
1401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1402
|
+
property :id_token, as: 'idToken'
|
1403
|
+
property :refresh_token, as: 'refreshToken'
|
1404
|
+
end
|
1405
|
+
end
|
1406
|
+
|
1209
1407
|
class GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo
|
1210
1408
|
# @private
|
1211
1409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1213,6 +1411,49 @@ module Google
|
|
1213
1411
|
end
|
1214
1412
|
end
|
1215
1413
|
|
1414
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions
|
1415
|
+
# @private
|
1416
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1417
|
+
property :authenticator_selection, as: 'authenticatorSelection', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria::Representation
|
1418
|
+
|
1419
|
+
property :challenge, :base64 => true, as: 'challenge'
|
1420
|
+
collection :exclude_credentials, as: 'excludeCredentials', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor::Representation
|
1421
|
+
|
1422
|
+
collection :pub_key_cred_params, as: 'pubKeyCredParams', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters::Representation
|
1423
|
+
|
1424
|
+
property :rp, as: 'rp', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RpEntity, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2RpEntity::Representation
|
1425
|
+
|
1426
|
+
property :user, as: 'user', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2UserEntity, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2UserEntity::Representation
|
1427
|
+
|
1428
|
+
end
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor
|
1432
|
+
# @private
|
1433
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1434
|
+
property :credential_id, :base64 => true, as: 'credentialId'
|
1435
|
+
property :credential_type, as: 'credentialType'
|
1436
|
+
collection :transports, as: 'transports'
|
1437
|
+
end
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters
|
1441
|
+
# @private
|
1442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1443
|
+
property :alg, :numeric_string => true, as: 'alg'
|
1444
|
+
property :credential_type, as: 'credentialType'
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
class GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions
|
1449
|
+
# @private
|
1450
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1451
|
+
property :challenge, :base64 => true, as: 'challenge'
|
1452
|
+
property :rp_id, as: 'rpId'
|
1453
|
+
property :user_verification, as: 'userVerification'
|
1454
|
+
end
|
1455
|
+
end
|
1456
|
+
|
1216
1457
|
class GoogleCloudIdentitytoolkitV2RecaptchaConfig
|
1217
1458
|
# @private
|
1218
1459
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1248,6 +1489,13 @@ module Google
|
|
1248
1489
|
end
|
1249
1490
|
end
|
1250
1491
|
|
1492
|
+
class GoogleCloudIdentitytoolkitV2RpEntity
|
1493
|
+
# @private
|
1494
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1495
|
+
property :id, as: 'id'
|
1496
|
+
end
|
1497
|
+
end
|
1498
|
+
|
1251
1499
|
class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
|
1252
1500
|
# @private
|
1253
1501
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1328,6 +1576,45 @@ module Google
|
|
1328
1576
|
end
|
1329
1577
|
end
|
1330
1578
|
|
1579
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest
|
1580
|
+
# @private
|
1581
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1582
|
+
property :id_token, as: 'idToken'
|
1583
|
+
property :tenant_id, as: 'tenantId'
|
1584
|
+
end
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse
|
1588
|
+
# @private
|
1589
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1590
|
+
property :credential_creation_options, as: 'credentialCreationOptions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions::Representation
|
1591
|
+
|
1592
|
+
end
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest
|
1596
|
+
# @private
|
1597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1598
|
+
property :session_id, :base64 => true, as: 'sessionId'
|
1599
|
+
property :tenant_id, as: 'tenantId'
|
1600
|
+
end
|
1601
|
+
end
|
1602
|
+
|
1603
|
+
class GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse
|
1604
|
+
# @private
|
1605
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1606
|
+
property :credential_request_options, as: 'credentialRequestOptions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions::Representation
|
1607
|
+
|
1608
|
+
end
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
class GoogleCloudIdentitytoolkitV2UserEntity
|
1612
|
+
# @private
|
1613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1614
|
+
property :id, :base64 => true, as: 'id'
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
|
1331
1618
|
class GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
|
1332
1619
|
# @private
|
1333
1620
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -234,6 +234,127 @@ module Google
|
|
234
234
|
execute_or_queue_command(command, &block)
|
235
235
|
end
|
236
236
|
|
237
|
+
# Finishes enrolling a passkey credential for the user.
|
238
|
+
# @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest] google_cloud_identitytoolkit_v2_finalize_passkey_enrollment_request_object
|
239
|
+
# @param [String] fields
|
240
|
+
# Selector specifying which fields to include in a partial response.
|
241
|
+
# @param [String] quota_user
|
242
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
243
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
244
|
+
# @param [Google::Apis::RequestOptions] options
|
245
|
+
# Request-specific options
|
246
|
+
#
|
247
|
+
# @yield [result, err] Result & error if block supplied
|
248
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse] parsed result object
|
249
|
+
# @yieldparam err [StandardError] error object if request failed
|
250
|
+
#
|
251
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse]
|
252
|
+
#
|
253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
256
|
+
def finalize_account_passkey_enrollment(google_cloud_identitytoolkit_v2_finalize_passkey_enrollment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
257
|
+
command = make_simple_command(:post, 'v2/accounts/passkeyEnrollment:finalize', options)
|
258
|
+
command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest::Representation
|
259
|
+
command.request_object = google_cloud_identitytoolkit_v2_finalize_passkey_enrollment_request_object
|
260
|
+
command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse::Representation
|
261
|
+
command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse
|
262
|
+
command.query['fields'] = fields unless fields.nil?
|
263
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
264
|
+
execute_or_queue_command(command, &block)
|
265
|
+
end
|
266
|
+
|
267
|
+
# Step one of the passkey enrollment process. Returns a challenge and parameters
|
268
|
+
# for creation of the passkey credential.
|
269
|
+
# @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest] google_cloud_identitytoolkit_v2_start_passkey_enrollment_request_object
|
270
|
+
# @param [String] fields
|
271
|
+
# Selector specifying which fields to include in a partial response.
|
272
|
+
# @param [String] quota_user
|
273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
275
|
+
# @param [Google::Apis::RequestOptions] options
|
276
|
+
# Request-specific options
|
277
|
+
#
|
278
|
+
# @yield [result, err] Result & error if block supplied
|
279
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse] parsed result object
|
280
|
+
# @yieldparam err [StandardError] error object if request failed
|
281
|
+
#
|
282
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse]
|
283
|
+
#
|
284
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
285
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
286
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
287
|
+
def start_account_passkey_enrollment(google_cloud_identitytoolkit_v2_start_passkey_enrollment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
288
|
+
command = make_simple_command(:post, 'v2/accounts/passkeyEnrollment:start', options)
|
289
|
+
command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest::Representation
|
290
|
+
command.request_object = google_cloud_identitytoolkit_v2_start_passkey_enrollment_request_object
|
291
|
+
command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse::Representation
|
292
|
+
command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse
|
293
|
+
command.query['fields'] = fields unless fields.nil?
|
294
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
295
|
+
execute_or_queue_command(command, &block)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Verifies the passkey assertion and signs the user in.
|
299
|
+
# @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest] google_cloud_identitytoolkit_v2_finalize_passkey_sign_in_request_object
|
300
|
+
# @param [String] fields
|
301
|
+
# Selector specifying which fields to include in a partial response.
|
302
|
+
# @param [String] quota_user
|
303
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
304
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
305
|
+
# @param [Google::Apis::RequestOptions] options
|
306
|
+
# Request-specific options
|
307
|
+
#
|
308
|
+
# @yield [result, err] Result & error if block supplied
|
309
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse] parsed result object
|
310
|
+
# @yieldparam err [StandardError] error object if request failed
|
311
|
+
#
|
312
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse]
|
313
|
+
#
|
314
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
315
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
316
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
317
|
+
def finalize_account_passkey_sign_in(google_cloud_identitytoolkit_v2_finalize_passkey_sign_in_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
318
|
+
command = make_simple_command(:post, 'v2/accounts/passkeySignIn:finalize', options)
|
319
|
+
command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest::Representation
|
320
|
+
command.request_object = google_cloud_identitytoolkit_v2_finalize_passkey_sign_in_request_object
|
321
|
+
command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse::Representation
|
322
|
+
command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse
|
323
|
+
command.query['fields'] = fields unless fields.nil?
|
324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
325
|
+
execute_or_queue_command(command, &block)
|
326
|
+
end
|
327
|
+
|
328
|
+
# Creates and returns the passkey challenge
|
329
|
+
# @param [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest] google_cloud_identitytoolkit_v2_start_passkey_sign_in_request_object
|
330
|
+
# @param [String] fields
|
331
|
+
# Selector specifying which fields to include in a partial response.
|
332
|
+
# @param [String] quota_user
|
333
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
334
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
335
|
+
# @param [Google::Apis::RequestOptions] options
|
336
|
+
# Request-specific options
|
337
|
+
#
|
338
|
+
# @yield [result, err] Result & error if block supplied
|
339
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse] parsed result object
|
340
|
+
# @yieldparam err [StandardError] error object if request failed
|
341
|
+
#
|
342
|
+
# @return [Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse]
|
343
|
+
#
|
344
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
345
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
346
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
347
|
+
def start_account_passkey_sign_in(google_cloud_identitytoolkit_v2_start_passkey_sign_in_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
348
|
+
command = make_simple_command(:post, 'v2/accounts/passkeySignIn:start', options)
|
349
|
+
command.request_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest::Representation
|
350
|
+
command.request_object = google_cloud_identitytoolkit_v2_start_passkey_sign_in_request_object
|
351
|
+
command.response_representation = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse::Representation
|
352
|
+
command.response_class = Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse
|
353
|
+
command.query['fields'] = fields unless fields.nil?
|
354
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
355
|
+
execute_or_queue_command(command, &block)
|
356
|
+
end
|
357
|
+
|
237
358
|
# List all default supported Idps.
|
238
359
|
# @param [Fixnum] page_size
|
239
360
|
# The maximum number of items to return.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-identitytoolkit_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-identitytoolkit_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-identitytoolkit_v2/v0.11.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-identitytoolkit_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|