This is a sample application showing JWT creation and verification with python.
- python3
- pyenv
- pip3
pyenv install 3.11
pyenv global 3.11
pip3 install -r requirements.txt
python3 run.py hmac
# shared keypython3 run.py hmac_verify_claims
# shared key, confirm those claims!python3 run.py rsa
# rsa 256, verify claimspython3 run.py rsa_wrong_algo
# rsa key but specify hmac when creating jwt. This blows up, as it should. Shows the value of using a library.