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

Password command-line option? #14

Open
pzelnip opened this issue Oct 25, 2018 · 1 comment
Open

Password command-line option? #14

pzelnip opened this issue Oct 25, 2018 · 1 comment

Comments

@pzelnip
Copy link

pzelnip commented Oct 25, 2018

It'd be nice to have a --password option on the command line like the Python client has. One can echo it, ie:

echo "mypassword" | java -jar onelogin-aws-cli.jar ...all the other options...

But if one has a MFA device like a Yubikey set up, the echo messes with that:

$ echo "mypassword" | java -jar onelogin-aws-cli.jar --username myusername --appid 123456 --subdomain subdomain --profile default --region ca-central-1

OneLogin AWS Assume Role Tool

18:53:25.338 [main] DEBUG com.onelogin.sdk.util.Settings - properties file onelogin.sdk.properties loaded succesfully
OneLogin Username: myusername
OneLogin Password: AWS App ID: 123456
Onelogin Instance Sub Domain: subdomain

MFA Required
Authenticate using one of these devices:
-----------------------------------------------------------------------
Enter the OTP Token for Yubico YubiKey: Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1371)
	at com.onelogin.aws.assume.role.cli.OneloginAWSCLI.getSamlResponse(OneloginAWSCLI.java:390)
	at com.onelogin.aws.assume.role.cli.OneloginAWSCLI.main(OneloginAWSCLI.java:206)
@pitbulk
Copy link
Contributor

pitbulk commented Oct 25, 2018

Noted

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

No branches or pull requests

2 participants