Django internal API Client/Server Authentication or not?

Viewed 1835

I have a django project, in which i expose a few api endpoints (api endpoint = answers to get/post, returns json response, correct me if im wrong in my definition). Those endpoints are used by me on front end, like update counts or get updated content, or a myriad other things. I handle the representation logic on server side, in templates, and in some cases send a rendered to string template to the client.

So here are the questions im trying to answer:

  1. Do i need to have some kind of authentication between the clients and the server?
  2. Is django cross origin protection enough?
  3. Where, in this picture, fit such packages like django-oauth-toolkit? And django-rest-framework?
  4. if i don't add any authentication between clients and server, am i leaving my server open for attacks?

Furthermore, what goes for server-to-server connection? Both servers under my control.

1 Answers
Related