<?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 Unable to assign clientId to OAuthClientInfo dynamically in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/unable-to-assign-clientid-to-oauthclientinfo/m-p/849886#M2736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Download and open the Sign In OAuth2 sample in QtCreator&lt;/LI&gt;&lt;LI&gt;Have Fiddler open&lt;/LI&gt;&lt;LI&gt;Run the app and it should successfully authenticate against ArcGIS Online&lt;/LI&gt;&lt;LI&gt;In Fiddler note that the authorize call contains a client ID parameter value&lt;/LI&gt;&lt;LI&gt;In App Settings, specify a client Id&lt;/LI&gt;&lt;LI&gt;In OAuth2.qml, find the OAuthClientInfo declaration and replace the hard-coded client ID with app.clientID&lt;/LI&gt;&lt;LI&gt;Run the app again and you'll an Invalid client_id error&lt;/LI&gt;&lt;LI&gt;Look at Fiddler and note the absence of the client ID parameter value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that no matter what I try, I can't get oAuthClientInfo.clientId to persist when using an expression to return a client ID (e.g. from appinfo.json). It only works when I hard-code the client Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else experience this issue, and know of any workarounds (other than hard-coding the ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2016 04:55:08 GMT</pubDate>
    <dc:creator>HeathcliffRongo</dc:creator>
    <dc:date>2016-06-27T04:55:08Z</dc:date>
    <item>
      <title>Unable to assign clientId to OAuthClientInfo dynamically</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/unable-to-assign-clientid-to-oauthclientinfo/m-p/849886#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Download and open the Sign In OAuth2 sample in QtCreator&lt;/LI&gt;&lt;LI&gt;Have Fiddler open&lt;/LI&gt;&lt;LI&gt;Run the app and it should successfully authenticate against ArcGIS Online&lt;/LI&gt;&lt;LI&gt;In Fiddler note that the authorize call contains a client ID parameter value&lt;/LI&gt;&lt;LI&gt;In App Settings, specify a client Id&lt;/LI&gt;&lt;LI&gt;In OAuth2.qml, find the OAuthClientInfo declaration and replace the hard-coded client ID with app.clientID&lt;/LI&gt;&lt;LI&gt;Run the app again and you'll an Invalid client_id error&lt;/LI&gt;&lt;LI&gt;Look at Fiddler and note the absence of the client ID parameter value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that no matter what I try, I can't get oAuthClientInfo.clientId to persist when using an expression to return a client ID (e.g. from appinfo.json). It only works when I hard-code the client Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else experience this issue, and know of any workarounds (other than hard-coding the ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 04:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/unable-to-assign-clientid-to-oauthclientinfo/m-p/849886#M2736</guid>
      <dc:creator>HeathcliffRongo</dc:creator>
      <dc:date>2016-06-27T04:55:08Z</dc:date>
    </item>
  </channel>
</rss>

