An open API service indexing awesome lists of open source software.

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

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.