Support two auth url types