dotja / jwt_token_authentication

Using JWT authentication with Django Rest Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWT Token Authentication

Using JWT authentication with Django Rest Framework.

API endpoints:

  • /api/user/register/
  • /api/user/login/
  • /api/user/
  • /api/user/logout/

Example usage

This repo can be used from the command line with the following steps:

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

You can also use it with httpie as follows:

http GET http://127.0.0.1:8000/api/user/ "Cookie:access_token=<the access token>"

About

Using JWT authentication with Django Rest Framework


Languages

Language:Python 100.0%