<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Understanding ArcGIS Client ID in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827686#M2143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In reality, you aren't creating two apps. &amp;nbsp;You needed to create the first one to test the app before upload, which creates the actual item. &amp;nbsp;It might be better to start by immediately uploading the application after creation to your account and&amp;nbsp;generate the clientID first thing. &amp;nbsp;Alternatively, you could simple have 'App1' as a resident testing clientID, reusing the clientID from app to app in development and then updating with the 'App2' clientID for production. &amp;nbsp;The main benefit of using separate application IDs is better per-app security/sharing and metrics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally invalid client_id occurs because of a mismatch between the Portal/AGO that you registered the app and what you're trying to log into. &amp;nbsp;If you're creating an application that is going to be used across multiple Portal/AGO environments, you'll need to create an item for the application in each environment and then set them to have identical clientIDs. &amp;nbsp;It's probably best to create in ArcGIS Online first, then reuse that clientID in Portals - there's a minuscule chance that you might come up with a duplicate clientID and ArcGIS Online has by far the larger population of duplicates to conflict with. &amp;nbsp;Take a look at the instructions at&amp;nbsp;&lt;A class="link-titled" href="http://support.esri.com/technical-article/000012713" title="http://support.esri.com/technical-article/000012713"&gt;How To: Add Survey123 for ArcGIS as a registered application to Portal for ArcGIS 10.3.1&lt;/A&gt;&amp;nbsp;&amp;nbsp;and pretend you're app &amp;amp; appID are being used in place of Survey123's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other issue that is common to experience in this situation is not have a valid redirect_uri - remember to have that included (like the well-known string&amp;nbsp;&lt;SPAN style="color: #6a6a6a;"&gt;urn&lt;/SPAN&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;:ietf:wg:oauth:2.0:oob for native apps)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 00:32:07 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2016-12-22T00:32:07Z</dc:date>
    <item>
      <title>Understanding ArcGIS Client ID</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827685#M2142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to understand the ArcGIS Client ID (AppID). &amp;nbsp;Here is my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the instructions at&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/applications/#/" title="https://developers.arcgis.com/applications/#/"&gt;Applications | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;to create and register an app (lets call it App One) and acquire a client id. &amp;nbsp;Once I have the client id I go into AppStudio and paste the client ID into my app I am creating in AppSudio (lets call it App Two). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;App Two, created in AppStudio, is Survey123 with no modifications (yet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do plan on signing in with Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am able to cloud make the app successfully using all of the other settings (apple cert, provisioning file, bundle ID and URL Scheme). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I cloud make my app, I now have 2 apps in my AppStudio account. &amp;nbsp;App One and App Two. &amp;nbsp;App One is registered with my Client ID while App Two is not and I receive an error when I try and register it, (&lt;SPAN style="color: #323232; background-color: #f3ded7;"&gt;There was an error registering your application).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore I do not understand why I create a first app for the client ID to use in a seperate app (App Two). &amp;nbsp;Also, when I side load my app on my iPhone, I receive the error. Invalid client_id error:400 and am unable to log in to my ArcGIS Online Account or any of my portals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me understand and solve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 23:40:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827685#M2142</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2016-12-21T23:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding ArcGIS Client ID</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827686#M2143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In reality, you aren't creating two apps. &amp;nbsp;You needed to create the first one to test the app before upload, which creates the actual item. &amp;nbsp;It might be better to start by immediately uploading the application after creation to your account and&amp;nbsp;generate the clientID first thing. &amp;nbsp;Alternatively, you could simple have 'App1' as a resident testing clientID, reusing the clientID from app to app in development and then updating with the 'App2' clientID for production. &amp;nbsp;The main benefit of using separate application IDs is better per-app security/sharing and metrics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally invalid client_id occurs because of a mismatch between the Portal/AGO that you registered the app and what you're trying to log into. &amp;nbsp;If you're creating an application that is going to be used across multiple Portal/AGO environments, you'll need to create an item for the application in each environment and then set them to have identical clientIDs. &amp;nbsp;It's probably best to create in ArcGIS Online first, then reuse that clientID in Portals - there's a minuscule chance that you might come up with a duplicate clientID and ArcGIS Online has by far the larger population of duplicates to conflict with. &amp;nbsp;Take a look at the instructions at&amp;nbsp;&lt;A class="link-titled" href="http://support.esri.com/technical-article/000012713" title="http://support.esri.com/technical-article/000012713"&gt;How To: Add Survey123 for ArcGIS as a registered application to Portal for ArcGIS 10.3.1&lt;/A&gt;&amp;nbsp;&amp;nbsp;and pretend you're app &amp;amp; appID are being used in place of Survey123's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other issue that is common to experience in this situation is not have a valid redirect_uri - remember to have that included (like the well-known string&amp;nbsp;&lt;SPAN style="color: #6a6a6a;"&gt;urn&lt;/SPAN&gt;&lt;SPAN style="color: #545454; background-color: #ffffff; font-size: small;"&gt;:ietf:wg:oauth:2.0:oob for native apps)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 00:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827686#M2143</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2016-12-22T00:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding ArcGIS Client ID</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827687#M2144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my workflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build App in AppStudio.&lt;/P&gt;&lt;P&gt;Upload App to my AGO account. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Copy Client ID and paste back in my advanced settings in AppStudio.&lt;/P&gt;&lt;P&gt;Build my app using cloud make to get these results:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/288557_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Once I side load my app to my iphone, I immediately get the invalid ID, without attempting to sign into AGO or my Portal. &amp;nbsp;I am using 10.4.1 stack with SAML authentication. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 16:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/understanding-arcgis-client-id/m-p/827687#M2144</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2016-12-22T16:10:21Z</dc:date>
    </item>
  </channel>
</rss>

