Changing web_endpoint attribute to root_endpoint for requesting oauth token