Skip to content

Using Rest-Knox to implement secure token based authentication mechanism in Django REST applications

License

Notifications You must be signed in to change notification settings

keivanipchihagh/django-knox-authentication

Repository files navigation

django-knox-authentication

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.

Installation

  1. Setup a virtual environment and install the required packages (on Ubuntu):
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
  1. Create the initial database and start the server:
$ cd ./django_knox_auth
$ python3 manage.py migrate
$ python3 manage.py runserver
  1. Import django-knox-authentication.postman_collection.json to postman and run the requests.

Enjoy!

About

Using Rest-Knox to implement secure token based authentication mechanism in Django REST applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages