jazzband/django-rest-knox
Authentication Module for django rest auth observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 99
- Release rhythm 60
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 324.0
- age_days: 4011
- days_rel: 52
- days_push: 9
- n_releases_24m: 3
Adoption not part of the score
1259 stars · 226 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
django-rest-knox is a token-based authentication library for Django REST Framework that improves on DRF's built-in TokenAuthentication. It supports one token per device, securely hashed token storage, and configurable token expiry.
Use cases
- token authentication for django rest framework apis
- support multiple device logins with separate tokens per user
- store auth tokens securely hashed in the database
- add token expiry to drf authentication
- implement server-side logout that deletes tokens
- force logout of all clients by invalidating all tokens
When to choose
- you use Django REST Framework and need per-device tokens
- you want tokens stored as secure hashes rather than plaintext
- you need configurable token expiration and server-side logout
When to avoid
- you use JWT-based authentication instead of database-backed tokens
- your project does not use Django or Django REST Framework
- you need OAuth or social login flows, which Knox does not provide
Facets
library · maturity active
auth security web-development backend security apis python django django-rest-framework token-authentication rest-api web-server
2 sources
- readme: https://github.com/jazzband/django-rest-knox · fetched 2026-08-28 · 8c66d2885ceb
- registry_pypi: https://pypi.org/pypi/django-rest-knox/json · fetched 2026-08-29 · cbc0b16a8913
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jazzband/django-rest-knox | main | 86 |
For agents
markdown · JSON · MCP: product_card(name="jazzband/django-rest-knox")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem