Skip to content

RobertoPrevato/PythonJWTDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validating JWTs with Python

This demo demonstrates how to validate JWTs using Python, obtaining RSA public keys from JWKS.

This code has been described in this blog post: https://robertoprevato.github.io/Validating-JWT-Bearer-tokens-from-Azure-AD-in-Python/.

Important: this code is just an example: it contains configuration to validate JWTs issued by Azure AD B2C, for an application configured in my test tenant.

Install requirements

Note: cryptography package might require extra dependencies, please refer to its documentation to know how to install it.

Example

python demo.py <JWT>

About

Demo for using Python to validate JWTs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages