ajax call to get auth urls