ajax request for oauth