venth / aws-adfs

Command line tool to ease aws cli authentication against ADFS (multi factor authentication with active directory)
MIT License
286 stars 99 forks source link

feat(login.py): login prompt on stderr if used with stdout flag #436

Open redsux opened 5 days ago

redsux commented 5 days ago

Prompt "Username" and "Password" login in stderr when using the --stdout flag.

This will ease usage of the JSON output without those prompt texts.
i.e. aws-adfs login ... --stdout > token.json

Or with AWS external credential process.

[profile adfs]
credential_process = sh -c 'aws-adfs login ... --stdout 2> /dev/tty'