Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v1/classes.rb,
lib/google/apis/identitytoolkit_v1/representations.rb,
lib/google/apis/identitytoolkit_v1/representations.rb
Overview
Request message for SendVerificationCode. At least one of (ios_receipt and
ios_secret), recaptcha_token, or safety_net_token must be specified to
verify the verification code is being sent on behalf of a real app and not an
emulator.
Instance Attribute Summary collapse
-
#auto_retrieval_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1AutoRetrievalInfo
The information required to auto-retrieve an SMS.
-
#ios_receipt ⇒ String
Receipt of successful iOS app token validation.
-
#ios_secret ⇒ String
Secret delivered to iOS app as a push notification.
-
#phone_number ⇒ String
The phone number to send the verification code to in E.164 format.
-
#recaptcha_token ⇒ String
Recaptcha token for app verification.
-
#safety_net_token ⇒ String
Android only.
-
#tenant_id ⇒ String
Tenant ID of the Identity Platform tenant the user is signing in to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest
Returns a new instance of GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest.
1733 1734 1735 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1733 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_retrieval_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1AutoRetrievalInfo
The information required to auto-retrieve an SMS.
Corresponds to the JSON property autoRetrievalInfo
1683 1684 1685 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1683 def auto_retrieval_info @auto_retrieval_info end |
#ios_receipt ⇒ String
Receipt of successful iOS app token validation. At least one of (ios_receipt
and ios_secret), recaptcha_token, or safety_net_token must be specified
to verify the verification code is being sent on behalf of a real app and not
an emulator. This should come from the response of verifyIosClient. If present,
the caller should also provide the ios_secret, as well as a bundle ID in
the x-ios-bundle-identifier header, which must match the bundle ID from the
verifyIosClient request.
Corresponds to the JSON property iosReceipt
1694 1695 1696 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1694 def ios_receipt @ios_receipt end |
#ios_secret ⇒ String
Secret delivered to iOS app as a push notification. Should be passed with an
ios_receipt as well as the x-ios-bundle-identifier header.
Corresponds to the JSON property iosSecret
1700 1701 1702 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1700 def ios_secret @ios_secret end |
#phone_number ⇒ String
The phone number to send the verification code to in E.164 format.
Corresponds to the JSON property phoneNumber
1705 1706 1707 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1705 def phone_number @phone_number end |
#recaptcha_token ⇒ String
Recaptcha token for app verification. At least one of (ios_receipt and
ios_secret), recaptcha_token, or safety_net_token must be specified to
verify the verification code is being sent on behalf of a real app and not an
emulator. The recaptcha should be generated by calling getRecaptchaParams and
the recaptcha token will be generated on user completion of the recaptcha
challenge.
Corresponds to the JSON property recaptchaToken
1715 1716 1717 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1715 def recaptcha_token @recaptcha_token end |
#safety_net_token ⇒ String
Android only. Used to assert application identity in place of a recaptcha
token. At least one of (ios_receipt and ios_secret), recaptcha_token, or
safety_net_token must be specified to verify the verification code is being
sent on behalf of a real app and not an emulator. A SafetyNet Token can be
generated via the SafetyNet Android Attestation API, with the Base64 encoding of
the phone_number field as the nonce.
Corresponds to the JSON property safetyNetToken
1726 1727 1728 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1726 def safety_net_token @safety_net_token end |
#tenant_id ⇒ String
Tenant ID of the Identity Platform tenant the user is signing in to.
Corresponds to the JSON property tenantId
1731 1732 1733 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1731 def tenant_id @tenant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1738 1739 1740 1741 1742 1743 1744 1745 1746 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1738 def update!(**args) @auto_retrieval_info = args[:auto_retrieval_info] if args.key?(:auto_retrieval_info) @ios_receipt = args[:ios_receipt] if args.key?(:ios_receipt) @ios_secret = args[:ios_secret] if args.key?(:ios_secret) @phone_number = args[:phone_number] if args.key?(:phone_number) @recaptcha_token = args[:recaptcha_token] if args.key?(:recaptcha_token) @safety_net_token = args[:safety_net_token] if args.key?(:safety_net_token) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) end |