aws-sso-cli icon indicating copy to clipboard operation
aws-sso-cli copied to clipboard

Initialization doesn't like provided SSO start url

Open swirle13 opened this issue 6 months ago • 1 comments

Output of aws-sso version:

AWS SSO CLI Version 2.0.3 -- Copyright 2021-2025 Aaron Turner
5c1f920359c675b7ac7e7efb2b7459553207287e (v2.0.3) built at 2025-05-29T15:11:31+0000

Describe the bug: When initializing aws-sso-cli via aws-sso, pasting in the SSO start URL value as copied directly from the AWS Access Portal, it fails to parse the value. URL is in format of https://a-bcdef12345.awsapps.com/start/#. Only when deleting https:// does it accept the value.

To Reproduce:

  1. aws-sso
  2. Copy SSO start URL from AWS Access Portal, looks like https://a-bcdef12345.awsapps.com/start/#
  3. Response of ERROR unable to resolve host=https://a-bcdef12345.awsapps.com/start/#

Note: You do not need to redact AWS AccountIDs from outputs or config. Per Amazon, "While account IDs, like any identifying information, should be used and shared carefully, they are not considered secret, sensitive, or confidential information."

Expected behavior: Allow parsing of URL as provided by AWS.

Screenshots:

Image

Desktop (please complete the following information):

  • OS: Debian GNU/Linux (dev container)
  • Version: 12.10 (bookworm)

Additional context: I would think the program would accept the value as copied directly from the access portal. Seems a bit cumbersome to have to change the value. I would think it would accept and remove the scheme, delimiter, and double slash, https:// from the value provided.

Contents of ~/.aws-sso/config.yaml:

No such file or directory

swirle13 avatar Jun 16 '25 21:06 swirle13

Definitely not a bug since it requests the hostname (and provides the example input of XXXXX.awsapps.com).

synfinatic avatar Jun 16 '25 22:06 synfinatic