Added to requirements djangorestframework-jwt, so you should build and up docker-compose again -> docker-compose up --build, then populate data by make load_data
Added to env_config/local.env CORS_ORIGIN_WHITELIST=localhost:3000 -> the domain for react app
Added to settings REST_FRAMEWORK
Added two serializes: CustomUserSerializer, CustomUserSerializerWithToken for handling signups
Added new urls and views
You may copy and paste your token here https://jwt.io/ and see header, payload and signature, if you want :)
More info is available in commits history.
Ready to merge. I decided to use djangorestframework-jwt This package provides JSON Web Token Authentication
To check how the tokens work, follow the instructions in README :) You can also check how the tokens work by logging in as admin by hitting http://localhost:8000/admin in your browser and then hitting private endpoints e.g. http://localhost:8000/api/users/students/
docker-compose up --build
, then populate data bymake load_data
You may copy and paste your token here https://jwt.io/ and see header, payload and signature, if you want :) More info is available in commits history.