Authentication Module for django rest auth
django-rest-knox
Authentication Module for django rest auth
Knox provides easy to use authentication for Django REST Framework The aim is to allow for common patterns in applications that are REST based, with little extra effort; and to ensure that connections remain secure.
Knox authentication is token based, similar to the TokenAuthentication
built in to DRF. However, it overcomes some problems present in the default implementation:
-
DRF tokens are limited to one per user. This does not facilitate securely signing in from multiple devices, as the token is shared. It also requires all devices to be logged out if a server-side logout is required (i.e. the token is deleted).
Knox provides one token per call to the login view – allowing each client