Files
teleport/lib/client
Alan Parra 7b7c4adbe0 Respect --auth and --mfa-mode before defaulting to passwordless (#20438)
Since #16964, `tsh login` defaults to passwordless if it finds suitable platform
credentials - it is safer and more convenient than other authentication methods.
Unfortunately, it is a bit too eager in doing that.

This change adds the following prerequisites for the switch, in addition to
existing conditions:

1. `--auth` must not be specified
2. `--mfa-mode` must be either `auto` or `platform`

(1) avoids defaulting when `--auth=local` is present, as well as for other
custom/future values. (If `--auth=passwordless` is passed, we'll do passwordless
anyway.)

(2) includes both an explicit platform attachment test (which is a bit more
conservative in face of changes), as well as checking for `--mfa-mode=otp`.

#20429 and #20322
2023-01-19 22:45:42 +00:00
..
2023-01-13 21:10:33 +00:00
2022-07-14 10:51:23 +00:00
2023-01-05 09:58:12 +00:00
2023-01-13 18:23:19 +00:00
2022-10-28 20:20:28 +00:00
2022-06-18 21:28:07 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-08-04 22:14:37 +00:00