Earnest-Labs / aws-sts

Generation of AWS STS tokens via SAML authentication.
67 stars 18 forks source link

◠ Logging in...goto: `url` must be a non-empty string #28

Open shamoons opened 5 years ago

shamoons commented 5 years ago

My config.json is:

{
    "awsConfigPath": "/.aws/credentials",
    "outputFormat": "json",
    "region": "us-west-1",
    "provider": "okta",
    "accounts": {
        "development": {
            "accountNumber": "NICETRY",
            "idpEntryUrl": "https://myorg.okta.com/home/amazon_aws/somestuff/numbers"
        }
    },
    "defaultAccount": "development"
}

But when I run it, I get an error:

Earnest AWS Token Generator

? Okta username (ex. user@domain.com): myuser@domain.com
? Okta password: ********************
  ◠ Logging in...goto: `url` must be a non-empty string
talf commented 4 years ago

I found that moving the idpEntryUrl to the global section works for me. (Got a single AWS app in Okta - so It's fine with my use-case) I'm also passing the --profile parameter. Otherwise, it always falls back to the "defaultAccount" naming.