Files
teleport/lib/utils
Alan Parra 70a0ad132e Consistently prompt for OTPs as password (#11346)
Introduce the prompt.Password function and use it consistently whenever we read
a password, OTP or PIN.

The PR makes it easy to support PINs during MFA authentication, so now we do so.
It also adds the capability to mock prompt.Stdin() for tests, adding a uniform
way to fake user input in tests without having to swap functions.

Complements #10953 and #9160.

* Prompt for OTPs as passwords (take 1), read PINs on MFA authentication
* Add the prompt.Password method
* Add Stdin mocking capabilities to the prompt package
* Delegate password reads to prompt.Stdin().ReadPassword()
* Remove stdinHijack from PromptMFAChallenge
* Change api_login_test.go to FakeReader
* Change tsh_test.go to FakeReader
* Retire client.ReadPassword in favor of prompt.Password
2022-03-28 17:16:00 +00:00
..
2021-10-19 09:21:55 -06:00
2021-07-21 14:35:04 -07:00
2021-04-07 15:49:27 -07:00
2018-01-09 10:30:19 -08:00
2020-10-13 00:22:49 +00:00
2020-04-17 20:05:38 +00:00
2021-10-19 14:00:24 -04:00
2021-10-19 09:21:55 -06:00
2021-10-19 09:21:55 -06:00
2022-01-18 22:48:34 +00:00
2022-02-16 13:32:32 -05:00
2021-10-19 09:21:55 -06:00
2021-10-19 09:21:55 -06:00
2021-07-30 15:34:19 -07:00
2016-12-08 18:43:37 -08:00
2021-10-19 14:00:24 -04:00
2021-12-09 19:50:44 +00:00
2020-09-28 23:08:56 -07:00
2019-05-07 14:17:11 -07:00
2021-10-19 14:00:24 -04:00
2021-10-19 14:00:24 -04:00
2020-01-02 17:56:53 -08:00
2021-08-09 10:17:49 -07:00