The infuriating thing is that this isn't necessary for CLI tooling. The reason this approach is taken is that you need a way to get the token to a local process even if the user is doing authentication in a browser. This can be avoided by having the process listen on localhost, and then have the login flow redirect to localhost (including the token) on successful completion. Unfortunately this doesn’t work for CLI to…
If SSH is already being used, can't one just create an SSH tunnel to forward the login?
Haven't seen anything like this, I'll try to bring this up with the openssh folks.