Class: Starship::TwoFactorProvider
- Inherits:
-
Object
- Object
- Starship::TwoFactorProvider
- Defined in:
- lib/starship/2fa_provider.rb
Direct Known Subclasses
Instance Method Summary collapse
- #get_code(session_id, scnt) ⇒ Object
-
#initialize ⇒ TwoFactorProvider
constructor
A new instance of TwoFactorProvider.
-
#two_factor_type ⇒ String
The type of 2FA (“phone”, “trusteddevice”).
Constructor Details
#initialize ⇒ TwoFactorProvider
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
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_type ⇒ String
Returns The type of 2FA (“phone”, “trusteddevice”).
15 16 17 |
# File 'lib/starship/2fa_provider.rb', line 15 def two_factor_type raise NotImplementedError, "Subclasses must implement two_factor_type" end |