Added
Python M2M Demo App Now Available
3 days ago by Jim Verducci
Initial release of the Wristband Python M2M demo app: a FastAPI server demonstrating machine-to-machine (M2M) authentication with both sync and async clients.
Key Features
- ✅ Demonstrates sync M2M auth with
WristbandM2MAuthClient(Django, Flask pattern) - ✅ Demonstrates async M2M auth with
AsyncWristbandM2MAuthClient(FastAPI pattern) - ✅ Token cache primed on server startup via FastAPI lifespan handler
- ✅ Protected API endpoints validated with the Wristband python-jwt SDK
- ✅ Public APIs simulate microservice upstream/downstream token passing
- ✅ Side-by-side sync and async route implementations for comparison
Dependencies
wristband-python-m2m-auth— M2M token acquisition, caching, and refreshwristband-python-jwt— JWT validation on protected endpoints
Requirements
- Python >= 3.10
For full documentation, see the README.