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

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) ⇒ ApprovePasskeysChallengeRequestResponse

Returns a new instance of ApprovePasskeysChallengeRequestResponse.



55
56
57
58
59
60
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 55

def initialize(payload)
        @authenticator_data = payload["authenticator_data"]
        @client_data_json = payload["client_data_json"]
        @signature = payload["signature"]
        @user_handle = payload["user_handle"]
end

Instance Attribute Details

#authenticator_dataObject

Parameters:

  • : (authenticator_data)

    [String] The authenticator data structure contains information from the authenticator about the processing of a credential creation or authentication request.

  • : (client_data_json)

    [String] This property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential.

  • : (signature)

    [String] An assertion signature over authenticatorData and clientDataJSON. The assertion signature is created with the private key of the key pair that was created during the originating navigator.credentials.create() call and verified using the public key of that same key pair.

  • : (user_handle)

    [String] The user handle stored in the authenticator, specified as user.id in the options passed to the originating navigator.credentials.create() call. This property should contain a base64url-encoded entity SID.



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def authenticator_data
  @authenticator_data
end

#client_data_jsonObject

Parameters:

  • : (authenticator_data)

    [String] The authenticator data structure contains information from the authenticator about the processing of a credential creation or authentication request.

  • : (client_data_json)

    [String] This property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential.

  • : (signature)

    [String] An assertion signature over authenticatorData and clientDataJSON. The assertion signature is created with the private key of the key pair that was created during the originating navigator.credentials.create() call and verified using the public key of that same key pair.

  • : (user_handle)

    [String] The user handle stored in the authenticator, specified as user.id in the options passed to the originating navigator.credentials.create() call. This property should contain a base64url-encoded entity SID.



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def client_data_json
  @client_data_json
end

#signatureObject

Parameters:

  • : (authenticator_data)

    [String] The authenticator data structure contains information from the authenticator about the processing of a credential creation or authentication request.

  • : (client_data_json)

    [String] This property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential.

  • : (signature)

    [String] An assertion signature over authenticatorData and clientDataJSON. The assertion signature is created with the private key of the key pair that was created during the originating navigator.credentials.create() call and verified using the public key of that same key pair.

  • : (user_handle)

    [String] The user handle stored in the authenticator, specified as user.id in the options passed to the originating navigator.credentials.create() call. This property should contain a base64url-encoded entity SID.



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def signature
  @signature
end

#user_handleObject

Parameters:

  • : (authenticator_data)

    [String] The authenticator data structure contains information from the authenticator about the processing of a credential creation or authentication request.

  • : (client_data_json)

    [String] This property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential.

  • : (signature)

    [String] An assertion signature over authenticatorData and clientDataJSON. The assertion signature is created with the private key of the key pair that was created during the originating navigator.credentials.create() call and verified using the public key of that same key pair.

  • : (user_handle)

    [String] The user handle stored in the authenticator, specified as user.id in the options passed to the originating navigator.credentials.create() call. This property should contain a base64url-encoded entity SID.



54
55
56
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 54

def user_handle
  @user_handle
end

Instance Method Details

#to_json(options = {}) ⇒ Object



61
62
63
64
65
66
67
68
# File 'lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb', line 61

def to_json(options = {})
{
        "authenticatorData": @authenticator_data,
        "clientDataJSON": @client_data_json,
        "signature": @signature,
        "userHandle": @user_handle,
}.to_json(options)
end