A wrapper script for generating tokens from AWS Cognito
Since go get
doesn't support modules just yet, it's easiest to install using https://github.com/FiloSottile/homebrew-gomod
:
brew install FiloSottile/gomod/brew-gomod
brew gomod github.com/highwingio/incognito
export AWS_REGION=<region>
Once installed, you'll need to run incognito login
once with your username,
password, user pool ID, and client ID, which will confirm those credentials with
Cognito then store them securely using
Keyring.
After that, you can run incognito generate
anytime to generate a new Cognito
token to be used elsewhere. You can use something like the following to
automatically copy it to your clipboard:
$ incognito generate | pbcopy
Incognito is written in Go.
We use Cobra to structure/manage the CLI commands.
There are no tests currently, but PRs are welcome!