Changes to support logging in to ArcGIS Online and Portal for ArcGIS using OAuth