ContainerImage.Pinniped/test
Matt Moyer 1e32530d7b
Fix broken TTY after manual auth code prompt.
This may be a temporary fix. It switches the manual auth code prompt to use `promptForValue()` instead of `promptForSecret()`. The `promptForSecret()` function no longer supports cancellation (the v0.9.2 behavior) and the method of cancelling in `promptForValue()` is now based on running the blocking read in a background goroutine, which is allowed to block forever or leak (which is not important for our CLI use case).

This means that the authorization code is now visible in the user's terminal, but this is really not a big deal because of PKCE and the limited lifetime of an auth code.

The main goroutine now correctly waits for the "manual prompt" goroutine to clean up, which now includes printing the extra newline that would normally have been entered by the user in the manual flow.

The text of the manual login prompt is updated to be more concise and less scary (don't use the word "fail").

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-07-30 12:45:44 -05:00
..
cluster_capabilities Run the LDAP client's integration tests only on Kind 2021-07-08 11:10:53 -07:00
deploy/tools Switch to GHCR tools images for local tests, with `imagePullPolicy: IfNotPresent`. 2021-07-21 09:21:05 -05:00
integration Fix broken TTY after manual auth code prompt. 2021-07-30 12:45:44 -05:00
testlib Add missing t.Helper() on RequireEventuallyf(). 2021-07-09 12:08:44 -05:00