Fixed OAuth automation scripts