Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

redsux
Copy link

@redsux redsux commented Jul 3, 2024

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'

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

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

Or with AWS external credential process.  
```ini
[profile adfs]
credential_process = sh -c 'aws-adfs login ... --stdout 2> /dev/tty'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant