Class: Starship::ManualTwoFactorProvider
- Inherits:
-
TwoFactorProvider
- Object
- TwoFactorProvider
- Starship::ManualTwoFactorProvider
- Includes:
- Logging
- Defined in:
- lib/starship/2fa_provider.rb
Overview
Manual 2FA provider that prompts the user for a code
Instance Method Summary collapse
Methods included from Logging
configure_logger_for, #logger, logger_for
Methods inherited from TwoFactorProvider
Constructor Details
This class inherits a constructor from Starship::TwoFactorProvider
Instance Method Details
#get_code(session_id, scnt) ⇒ Object
24 25 26 27 28 |
# File 'lib/starship/2fa_provider.rb', line 24 def get_code(session_id, scnt) logger.info "Please enter the code you received: " code = gets.chomp.strip code end |
#two_factor_type ⇒ Object
30 31 32 |
# File 'lib/starship/2fa_provider.rb', line 30 def two_factor_type "trusteddevice" end |