-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels