Version with authentication and a better control of the urls