Add ability to change base url with authenticate