Skip to content

v0.1.0

Latest

Choose a tag to compare

@stackadnan stackadnan released this 22 Aug 18:08
· 3 commits to main since this release

Initial release.

  • AbstractTenantAPIKey base model: SHA-256 hashed key storage, constant-time verification, scope checks (has_scope) supporting exact matches, global "*", and namespaced "orders:*" wildcards.
  • TenantAPIKeyAuthentication and HasAPIKeyScope for Django REST Framework.
  • TenantAPIKeyAdmin for the Django admin — key shown once on creation, masked afterward.
  • Framework-agnostic get_api_key_model() / generate_api_key() for building custom integrations (e.g. Django Ninja).
  • Tested against Django 4.2 and 5.2 on Python 3.10-3.12. 100% test coverage, mypy --strict, ruff clean.