Fixed issue where full URL was being sent for authentication for oauth.