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. Read more here.
- Setup a virtual environment and install the required packages (on Ubuntu):
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
- Create the initial database and start the server:
$ cd ./django_knox_auth
$ python3 manage.py migrate
$ python3 manage.py runserver
- Import django-knox-authentication.postman_collection.json to postman and run the requests.
Enjoy!