aws / aws/aws-cli

Add --use-device-code as an option in config

Open
#9,098 11 comments 18 reactions 0 assignees View on GitHub
feature-request p2 sso
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### 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:

```
[sso-session default]
...
login_type = device | pkce
```

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CLI version used

2.22.2

### Environment details (OS name and version, etc.)

Ubuntu 24.04

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.