Added some basic auth to the endpoints