Class: Twilio::REST::Verify::V2::ServiceContext::ApproveChallengeList::ApprovePasskeysChallengeRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ApprovePasskeysChallengeRequest

Returns a new instance of ApprovePasskeysChallengeRequest.



31
32
33
34
35
36
37
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 31

def initialize(payload)
        @id = payload["id"]
        @raw_id = payload["raw_id"]
        @authenticator_attachment = payload["authenticator_attachment"]
        @type = payload["type"]
        @response = payload["response"]
end

Instance Attribute Details

#authenticator_attachmentObject

Parameters:

  • : (id)
    String

    A [base64url](base64.guru/standards/base64url) encoded representation of ‘rawId`.

  • : (raw_id)
    String

    The globally unique identifier for this ‘PublicKeyCredential`.

  • : (authenticator_attachment)
    String

    A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated ‘navigator.credentials.create()` or `navigator.credentials.get()` call completes.

  • : (type)
    String

    The valid credential types supported by the API. The values of this enumeration are used for versioning the ‘AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator.

  • : (response)
    ApproveChallengeList.ApprovePasskeysChallengeRequestResponse


30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def authenticator_attachment
  @authenticator_attachment
end

#idObject

Parameters:

  • : (id)
    String

    A [base64url](base64.guru/standards/base64url) encoded representation of ‘rawId`.

  • : (raw_id)
    String

    The globally unique identifier for this ‘PublicKeyCredential`.

  • : (authenticator_attachment)
    String

    A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated ‘navigator.credentials.create()` or `navigator.credentials.get()` call completes.

  • : (type)
    String

    The valid credential types supported by the API. The values of this enumeration are used for versioning the ‘AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator.

  • : (response)
    ApproveChallengeList.ApprovePasskeysChallengeRequestResponse


30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def id
  @id
end

#raw_idObject

Parameters:

  • : (id)
    String

    A [base64url](base64.guru/standards/base64url) encoded representation of ‘rawId`.

  • : (raw_id)
    String

    The globally unique identifier for this ‘PublicKeyCredential`.

  • : (authenticator_attachment)
    String

    A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated ‘navigator.credentials.create()` or `navigator.credentials.get()` call completes.

  • : (type)
    String

    The valid credential types supported by the API. The values of this enumeration are used for versioning the ‘AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator.

  • : (response)
    ApproveChallengeList.ApprovePasskeysChallengeRequestResponse


30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def raw_id
  @raw_id
end

#responseObject

Parameters:

  • : (id)
    String

    A [base64url](base64.guru/standards/base64url) encoded representation of ‘rawId`.

  • : (raw_id)
    String

    The globally unique identifier for this ‘PublicKeyCredential`.

  • : (authenticator_attachment)
    String

    A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated ‘navigator.credentials.create()` or `navigator.credentials.get()` call completes.

  • : (type)
    String

    The valid credential types supported by the API. The values of this enumeration are used for versioning the ‘AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator.

  • : (response)
    ApproveChallengeList.ApprovePasskeysChallengeRequestResponse


30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def response
  @response
end

#typeObject

Parameters:

  • : (id)
    String

    A [base64url](base64.guru/standards/base64url) encoded representation of ‘rawId`.

  • : (raw_id)
    String

    The globally unique identifier for this ‘PublicKeyCredential`.

  • : (authenticator_attachment)
    String

    A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated ‘navigator.credentials.create()` or `navigator.credentials.get()` call completes.

  • : (type)
    String

    The valid credential types supported by the API. The values of this enumeration are used for versioning the ‘AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator.

  • : (response)
    ApproveChallengeList.ApprovePasskeysChallengeRequestResponse


30
31
32
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 30

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 38

def to_json(options = {})
{
        "id": @id,
        "rawId": @raw_id,
        "authenticatorAttachment": @authenticator_attachment,
        "type": @type,
        "response": @response,
}.to_json(options)
end