Enable OAuth when reading from XML file