Skip to content

Commit

Permalink
Documentation and todo
Browse files Browse the repository at this point in the history
  • Loading branch information
rowkilian committed Nov 11, 2024
1 parent 13003ff commit baef71d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
# AWS Token Manager

This Rust program is designed to manage AWS SSO (Single Sign-On) profiles and retrieve authentication tokens. It provides functionality for setting up profiles and obtaining tokens for both SSO and Assume SSO profiles.
This program is designed to manage AWS SSO (Single Sign-On) profiles and retrieve authentication tokens. It provides functionality for setting up profiles and obtaining tokens for both SSO and Assume SSO profiles.
It uses the `credential_process` field in the `~/.aws/config` file to retrieve the authentication token for the specified profile.

## Why?

Saves you to type `aws sso login ...` every time you need to login to AWS SSO.
On MacOS, you can set it up not to use the default browser.
Logs actions in the ~/.aws/ssologinlite/logs directory.

## Config

config example:
```cat << EOF > ~/.config/ssologinlite.toml
browser = "firefox"
default_sso_url = "https://myawsorg.awsapps.com/start/"
EOF
```

## Features

- Setup AWS SSO profiles
- Retrieve authentication tokens for SSO and Assume SSO profiles
- Debug mode for detailed logging
- Command-line interface using `clap`

## Installation

Expand Down
14 changes: 3 additions & 11 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
TODO
secure permissions on cache create cache file as 600 -> Done

review and remove unwraps and ? where unnecessary -> Unwrap Done

encrypt cache entries or file optional -> Later

web browser choice -> Done

better logging

documentation
Windows: Someday.
EKS: I thought I got it working but not.
Test: I need to write tests.

0 comments on commit baef71d

Please sign in to comment.