Migrate authentication endpoint to REST
Migrate custom requests to Django REST.
Login entrypoint were originally written in plain Django due to REST' documentation recommanding using CSRF-protected views for login operations, but this is also possible by implementing the CSRF check as a REST Permission.
Edited by Marco Marinello