Makes heavy use of the warrant library to make it easy to get a jwt from a cognito userpool.
Configuration for this project is sourced from your current working directory ./.cognito-login.yaml
, your home directory ~/.cognito-login.yaml
, or environment variables showin in the cognito-login --help
output.
Configuration file properties look similar to the command-line arguments, except without the --
.
The following command
$ cognito-login --user-pool-id us-east-1_ABCABCABC --app-client-id abcabcabcabcabcabcabcabcab -u ... -p ...
can be made easier by defining the following config:
user-pool-id: us-east-1_ABCABCABC
app-client-id: abcabcabcabcabcabcabcabcab
so you just have to execute this command:
$ cognito-login -u ... -p ...
Get more information on how to use the command
Display the current version of cognito-login
The ID of the user pool you want to authenticate with
The ID of the user pool's app client you want to authenticate with
The username of the user you want to authenticate
The password of the user you want to authenticate