Skip to content

FusionAuth/fusionauth-example-python-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT examples in python

This is a sample application showing JWT creation and verification with python.

Prerequisites

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.

About

JWT examples in python

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages