Skip to main content

SDK for integrating your Python application with Wristband for machine-to-machine (M2M) authentication. Handles token acquisition and caching.

Project description

Wristband Machine-to-Machine (M2M) Authentication SDK for Python

Wristband provides enterprise-ready auth that is secure by default, truly multi-tenant, and ungated for small businesses.

For detailed setup instructions and usage guidelines, visit the project's GitHub repository.

Details

This SDK enables Wristband machine-to-machine (M2M) OAuth2 clients to securely retrieve, cache, and refresh access tokens in Python applications. It is supported for Python 3.10+ and provides both synchronous and asynchronous clients to fit any framework (Django, FastAPI, etc.). Key functionalities encompass the following:

  • Fetching an access token from Wristband using the OAuth2 client credentials grant.
  • Caching the access token in memory for the duration of its validity.
  • Automatically refreshing the token when it expires or is nearing expiration.
  • Optionally refreshing the token proactively in the background at a fixed interval.
  • Clearing the cached token on demand (e.g. after receiving a 401 from a downstream API).

You can learn more about how M2M authentication works in Wristband in our documentation:

Questions

Reach out to the Wristband team at support@wristband.dev for any questions regarding this SDK.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wristband_python_m2m_auth-0.1.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wristband_python_m2m_auth-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file wristband_python_m2m_auth-0.1.0.tar.gz.

File metadata

File hashes

Hashes for wristband_python_m2m_auth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51f361265096cab16142c4141fd16501ccde066c07db6a017a204ce5da0b8dc3
MD5 08382d906aea49af48525818b093203a
BLAKE2b-256 0cc96c809d5f03adde5ac528374f8e57d48f500df86ee8da68354f32449a7803

See more details on using hashes here.

File details

Details for the file wristband_python_m2m_auth-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wristband_python_m2m_auth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1190cd596de890e52c3060872d44cdb6aee202031f42577f11f153ef1113e6eb
MD5 5fdb9b3757e9349f6e819f843df429d3
BLAKE2b-256 f33960d45a159a81557486b68ea6dd6d536d9135dab8f834489f7fbd5bd91276

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page