Class: WorkOS::MFATotpSessionAuthenticateRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/mfa_totp_session_authenticate_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  client_id: :client_id,
  client_secret: :client_secret,
  grant_type: :grant_type,
  code: :code,
  pending_authentication_token: :pending_authentication_token,
  authentication_challenge_id: :authentication_challenge_id,
  ip_address: :ip_address,
  device_id: :device_id,
  user_agent: :user_agent
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ MFATotpSessionAuthenticateRequest

Returns a new instance of MFATotpSessionAuthenticateRequest.



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 30

def initialize(json)
  hash = self.class.normalize(json)
  @client_id = hash[:client_id]
  @client_secret = hash[:client_secret]
  @grant_type = hash[:grant_type]
  @code = hash[:code]
  @pending_authentication_token = hash[:pending_authentication_token]
  @authentication_challenge_id = hash[:authentication_challenge_id]
  @ip_address = hash[:ip_address]
  @device_id = hash[:device_id]
  @user_agent = hash[:user_agent]
end

Instance Attribute Details

#authentication_challenge_idObject

Returns the value of attribute authentication_challenge_id.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def authentication_challenge_id
  @authentication_challenge_id
end

#client_idObject

Returns the value of attribute client_id.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def client_secret
  @client_secret
end

#codeObject

Returns the value of attribute code.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def code
  @code
end

#device_idObject

Returns the value of attribute device_id.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def device_id
  @device_id
end

#grant_typeObject

Returns the value of attribute grant_type.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def grant_type
  @grant_type
end

#ip_addressObject

Returns the value of attribute ip_address.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def ip_address
  @ip_address
end

#pending_authentication_tokenObject

Returns the value of attribute pending_authentication_token.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def pending_authentication_token
  @pending_authentication_token
end

#user_agentObject

Returns the value of attribute user_agent.



19
20
21
# File 'lib/workos/user_management/mfa_totp_session_authenticate_request.rb', line 19

def user_agent
  @user_agent
end