updated authentication for dx1/azure ad support