Add authentication to the file endpoint and mock it in the unit tests