-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: allow to customize ip address for redirect_uri #9148
Comments
Double-checking, is the desired alternative hostname still the machine that you're originating the login from? If not, we'd need mechanism to get the authorization code that is returned by the redirect back to the machine that is logging in. Currently AWS IAM Identity Center requires this to be |
In my specific use-case, I ssh into my home server where I do all dev work on. I implicitly trust that machine. Just the redirect back to Ideal flow:
Alternatively if you want to restrict to just trust
|
I had a similar issue. I use the AWS CLI within a Docker container on my machine. Since it picks a random port each time, I can't easily forward the port through my docker config. Allowing the user to specify a specific port to use in the ~/.aws/config file would work for me. |
Interesting that a cloud infrastructure company wouldn't consider the possibility of authenticating in a desktop browser for a headless VM. Thankfully, versions with the previous behavior are still available. |
|
Describe the feature
Recently
aws sso login
started using Authorization Code flow vs previously default device auth flow. As part of that flow CLI shows a URL which embeds aredirect_uri
which redirects back to127.0.0.1
after flow is successfully completed on the AWS side. For example:This works great if you are running the command locally on the machine. However sometimes its useful to run it on a remote machine where
127.0.0.1
does not work for theredirect_uri
.Use Case
Running
aws sso login
on a remote machine where127.0.0.1
is not accessible for theredirect_uri
Proposed Solution
The request is to allow to customize the host of the
redirect_uri
which will allow to use the Authorization Code flow from a remote connection:Other Information
As a workaround currently its possible to switch to use the device auth flow:
although the new authorization flow is a lot more slick as it requires much fewer clicks on the browser.
Acknowledgements
CLI version used
2.22.15
Environment details (OS name and version, etc.)
aws-cli/2.22.15 Python/3.12.6 Linux/6.10.8-arch1-1 exe/x86_64.arch
The text was updated successfully, but these errors were encountered: