-
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
Add --use-device-code as an option in config #9098
Comments
We intentionally started with just But I understand that can be frequent on non-local computers. We'll gather interest via this issue for a profile option. |
I have just run into this issue. I have a workflow where aws-cli is part of a docker container. The new PKCE-based Authorization flow doesn't work at all in that context. First: it can't open a browser from within the container. Second: when I copy the URL into my local browser, I then authorize the connection and I get redirected to an error page because whoever is listening for that redirect is not on the local machine. I need to start a new remote-shell, execute an additional bash process within the same container and curl the redirect url so that the login flow can resume correctly. So overall, --use-device-code is unavoidable in this flow, and having it as part of the saved profile would help a lot. |
In a related issue, it seems we cannot use Please also support EDIT: fixed in later package version! |
@michaelbutleridt: |
@Dalzhim - the Docker anecdote is helpful for prioritization, thanks for writing that up. @michaelbutleridt - |
I have |
Describe the feature
In order to use
aws sso login
on non-local computers, you have to pass in--use-device-code
. This should be an option as users who need to use the option will presumably always need to. Adding an option in the config as a convenience will be helpful.Use Case
Having to always add the flag when logging in is annoying.
Proposed Solution
Add a login type in config:
Other Information
No response
Acknowledgements
CLI version used
2.22.2
Environment details (OS name and version, etc.)
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: