Skip to content

Commit

Permalink
Display AWS user code during device authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
mconigliaro committed Feb 3, 2025
1 parent 91d7cee commit b71cdff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Require Python >=3.9
- [aws] Add two minute expiration buffer to TTLs to prevent long-running
commands from failing by starting the renewal process early.
- [aws] Display AWS user code during device authorization.

## 1.1.0 - 2022-10-18

Expand Down
1 change: 1 addition & 0 deletions authum/plugins/aws/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def renew(
)
log.debug(f"AWS response: {authorization}")

authum.util.rich_stderr.print(f"User code: {authorization['userCode']}")
if launch_web_browser:
webbrowser.open(authorization["verificationUriComplete"])

Expand Down

0 comments on commit b71cdff

Please sign in to comment.