tillmo / two_tiered_quiz

A multiple choice quiz with justifications for the answers, written in Django
GNU Affero General Public License v3.0
0 stars 0 forks source link

authentification via JWT #60

Closed tillmo closed 4 years ago

tillmo commented 4 years ago

for user related requests, the frontend needs to authentificate itself to the backend API via JWT

tillmo commented 4 years ago

@pramodkumarbontha in settings.py, you have already added rest_framework.authentication.TokenAuthentication. What is its purpose? It seems that currently, anyone can obtain all the data from the API. Access should be restricted via a token here.

pramodbontha commented 4 years ago

Will add the authentication to all the URLs

tillmo commented 4 years ago

fixed by #72