Added

Python M2M Demo App Now Available

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

Requirements

  • Python >= 3.10

For full documentation, see the README.