Update oAuth code. due to changes made to the oAuth api.