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

aws sso login still broken for profiles outside of us-east-1 #8790

Closed
mattiamarchesini opened this issue Jul 9, 2024 · 2 comments
Closed
Assignees
Labels
bug This issue is a bug. closed-for-staleness p2 This is a standard priority issue response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@mattiamarchesini
Copy link

Describe the bug

Needed to create another issue since the original went unanswered for over an year and I feel this is a very important feature to be left broken.

Right now sso login is broken cause the web page form always redirects to https://us-east-1.signin.aws/platform/login regardless of the region set in the profile config, thus making it impossible to authenticate for every other region outside of us-east-1.

Expected Behavior

After pasting the code I should be redirected to the correct login page for my region

Current Behavior

.aws/config being

[profile my-sso]
sso_start_url = https://my-sso-portal.awsapps.com/start
sso_region = eu-north-1
sso_account_id = <My-ID>
sso_role_name = AWSAdministratorAccess
region = eu-north-1
output = json

aws sso login --profile my-sso initially gives the correct url, but after pasting the code I'm redirected to https://us-east-1.signin.aws/platform/login which does not know about my eu-north-1 account. Manually changing the url to https://eu-north-1.signin.aws/platform/login does not work.

Reproduction Steps

try to login using aws sso login with an account outside of us-east-1

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.17.10 Python/3.11.8 Linux/5.15.146.1-microsoft-standard-WSL2 docker/x86_64.amzn.2

Environment details (OS name and version, etc.)

docker under wsl2

@mattiamarchesini mattiamarchesini added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 9, 2024
@tim-finnigan tim-finnigan self-assigned this Jul 10, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. Linking the CLI SSO User Guide page for reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html

I tried to reproduce this issue (in us-west-2) but was unable to. Maybe try using the --no-browser parameter and then paste the link it outputs in your browser? That link should in include a ?user_code parameter. Mine looks like this https://device.sso.us-west-2.amazonaws.com/?user_code=WXYZ-ABCD. The eu-north-1 region has a documented SSO endpoint here: https://docs.aws.amazon.com/general/latest/gr/sso.html

@tim-finnigan tim-finnigan added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jul 10, 2024
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. closed-for-staleness p2 This is a standard priority issue response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants