This repository provides a minimal OAuth 2.1 server (using Flask) and a client experiment script for testing PKCE, token rotation, DPoP, and more.
- Python 3.7+
- pip install flask pyjwt cryptography requests
- Run the local server:
python local_oauth_server.py
It will start on http://127.0.0.1:5000.
- Edit
oauth_experiment.pyif needed to match the server endpoints. Run the experiment script:
python oauth_experiment.py
- Check the console outputs and any returned JSON to see the tokens and test results.
Use these scripts for demonstration or local testing only. Do not use them in production environments.