https://github.com/fusionauth/fusionauth-example-python-jwt
JWT examples in python
https://github.com/fusionauth/fusionauth-example-python-jwt
fusionauth jwt python
Last synced: 5 months ago
JSON representation
JWT examples in python
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-example-python-jwt
- Owner: FusionAuth
- License: apache-2.0
- Created: 2021-01-21T02:00:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T05:55:36.000Z (almost 2 years ago)
- Last Synced: 2025-12-17T14:44:00.441Z (6 months ago)
- Topics: fusionauth, jwt, python
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# JWT examples in python
This is a sample application showing JWT creation and verification with python.
## Prerequisites
* python3
* [pyenv](https://github.com/pyenv/pyenv)
* pip3
## Installation
* `pyenv install 3.11`
* `pyenv global 3.11`
* `pip3 install -r requirements.txt`
## Running
* `python3 run.py hmac` # shared key
* `python3 run.py hmac_verify_claims` # shared key, confirm those claims!
* `python3 run.py rsa` # rsa 256, verify claims
* `python3 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.