ivica3730k / azure-easy-auth-token-validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decode and Validate Azure Active Directory Token in Python

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.

Installation

You need Python 3.7+ with pip installed.

To run the demo, you need to install the dependencies:

pip install -r requirements.txt

Running the Demo

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>

About


Languages

Language:Python 100.0%