Skip to main content

SDK for integrating your Python Django application with Wristband. Handles user authentication, session management, and token management. Optional Django Rest Framework (DRF) support included.

Project description

Wristband Multi-Tenant Authentication SDK for Python Django

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 facilitates seamless interaction with Wristband for user authentication within multi-tenant Django applications. It follows OAuth 2.1 and OpenID standards and is supported for Python 3.10+. Key functionalities encompass the following:

  • Initiating a login request by redirecting to Wristband.
  • Receiving callback requests from Wristband to complete a login request.
  • Retrieving all necessary JWT tokens and userinfo to start an application session.
  • Logging out a user from the application by revoking refresh tokens and redirecting to Wristband.
  • Checking for expired access tokens and refreshing them automatically, if necessary.
  • Function-based view decorators and class-based view mixins for Django authentication.
  • Multi-strategy authentication for API endpoints (sessions + JWTs).
  • Django REST Framework authentication class support for session and JWT bearer token strategies.
  • Authentication backend for syncing Wristband users to Django's User model.
  • Encrypted cookie-based session engine for secure, stateless session management.

You can learn more about how 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_django_auth-1.0.1.tar.gz (96.7 kB view details)

Uploaded Source

Built Distribution

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

wristband_django_auth-1.0.1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file wristband_django_auth-1.0.1.tar.gz.

File metadata

  • Download URL: wristband_django_auth-1.0.1.tar.gz
  • Upload date:
  • Size: 96.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for wristband_django_auth-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c82ce480081b9e2e22ee1ca916378eb9ea52d75b626d4ccf2696768ce66c4423
MD5 eac4d8da28b0c4c58a74f61271c58c3e
BLAKE2b-256 5c0278bd77f847bbda2649fa000efd616e863608c4c5b79f694762f0c09f12f4

See more details on using hashes here.

File details

Details for the file wristband_django_auth-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wristband_django_auth-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eff332fa9f5622bcf7c88aba4276062b69672b88de3b9e0271601ac4c97da35d
MD5 bf66d2ec73bbf4d0a1f168c3ecb656cd
BLAKE2b-256 11e1bdefafce49fffe44340b29fe26c008e107e783c2e9df244127223767ce1e

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