This repository contains the sources for the helper package aadtoken
and demo script.
Big thanks to Ivan Georgiev for the original article and code.
For examples and discussion, see the original article Decode and Validate Azure Active Directory Token in Python.
You need Python 3.7+ with pip
installed.
To run the demo, you need to install the dependencies:
pip install -r requirements.txt
To start the demo, you need to define two environment variables:
export CLIENT_ID=<your-webapp-id-goes-here>
export TENANT_ID=<your-tenant-id-goes-here>
Than you can start the demo script:
python demo.py <your-token-goes-here>