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
Metadata
Release files for cognito-login 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cognito-login-0.0.5.tar.gz | 8.5 kB | Without provenance | Details for cognito-login-0.0.5.tar.gz |
Release files / cognito-login-0.0.5.tar.gz
| Download URL | cognito-login-0.0.5.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c71a8adffbd1b407e38ed8ad8e28f23cb6ce3c06350d15c96da8f43a2e0fe49d
|
|
BLAKE2b-256 checksum How to use checksums |
b138a2ff5b02bc9fdccdb69f6097c0da1a793c2de49284161fc2ccb190680d93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for cognito-login 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.