diff --git a/README.md b/README.md index 8ee5ca4..1a94804 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/TODO.md b/TODO.md index f73d7bb..adc3703 100644 --- a/TODO.md +++ b/TODO.md @@ -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.