cognito-login - A CLI to get a jwt from cognito login credentials
Project description
Cognito Login: A CLI to get a jwt from cognito login credentials
Makes heavy use of the warrant library to make it easy to get a jwt from a cognito userpool.
Configuration
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 ...
Usage
-h, --help
Get more information on how to use the command
-v, --version
Display the current version of cognito-login
--user-pool-id
The ID of the user pool you want to authenticate with
--app-client-id
The ID of the user pool's app client you want to authenticate with
-u, --username
The username of the user you want to authenticate
-p, --password
The password of the user you want to authenticate
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cognito-login-0.0.2.tar.gz
.
File metadata
- Download URL: cognito-login-0.0.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b7ce4b2a959d6f4374cc6b0b9506d68a9bb9e0e144fd93404756813327e49fb |
|
MD5 | 745ba945db248bc57ee7b6813191efef |
|
BLAKE2b-256 | b2929ae81fcad1fab624b7d9c26252271f4620238beca6260af694d03c030543 |