Class: Starship::TwoFactorProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/starship/2fa_provider.rb

Direct Known Subclasses

ManualTwoFactorProvider

Instance Method Summary collapse

Constructor Details

#initializeTwoFactorProvider

Returns a new instance of TwoFactorProvider.



7
8
# File 'lib/starship/2fa_provider.rb', line 7

def initialize
end

Instance Method Details

#get_code(session_id, scnt) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/starship/2fa_provider.rb', line 10

def get_code(session_id, scnt)
  raise NotImplementedError, "Subclasses must implement get_code"
end

#two_factor_typeString

Returns The type of 2FA (“phone”, “trusteddevice”).

Returns:

  • (String)

    The type of 2FA (“phone”, “trusteddevice”)

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/starship/2fa_provider.rb', line 15

def two_factor_type
  raise NotImplementedError, "Subclasses must implement two_factor_type"
end