fix authentication url formating