Skip to content

Password command-line option? #14

@pzelnip

Description

@pzelnip

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions