<?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: Write data via a secured GP service to the server - Token required error in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734903#M19413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would setup the proxy for that url in your proxy.config and set the proxy rule in your apps main config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/use-proxy.htm" title="https://developers.arcgis.com/web-appbuilder/guide/use-proxy.htm"&gt;Use proxy—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blogs.esri.com/esri/supportcenter/2015/10/28/setting-up-a-proxy-with-web-appbuilder-for-arcgis-developer-edition/" title="https://blogs.esri.com/esri/supportcenter/2015/10/28/setting-up-a-proxy-with-web-appbuilder-for-arcgis-developer-edition/"&gt;Setting up a proxy with Web AppBuilder Developer Edition | Support Services Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 20:00:14 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-02-16T20:00:14Z</dc:date>
    <item>
      <title>Write data via a secured GP service to the server - Token required error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734902#M19412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, my mapping application uses a&amp;nbsp;GP service to save some info to a .txt located on the server. The GP service is secured through Portal. I&amp;nbsp;was able to save data via the GP service rest endpoint without any issues. However, when I used JavaScript API to do that (codes are below) in WAB, the Modified Date of the file was updated but no data was saved. &amp;nbsp;"Error: token required..." was thrown in Concole.&amp;nbsp;I guess this was related to the secured GP service. How to add a credential to the Geoprocessor? Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/324433_pastedImage_1.png" style="width: 783px; height: 190px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734902#M19412</guid>
      <dc:creator>Alexwang</dc:creator>
      <dc:date>2017-02-16T19:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Write data via a secured GP service to the server - Token required error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734903#M19413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would setup the proxy for that url in your proxy.config and set the proxy rule in your apps main config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/use-proxy.htm" title="https://developers.arcgis.com/web-appbuilder/guide/use-proxy.htm"&gt;Use proxy—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blogs.esri.com/esri/supportcenter/2015/10/28/setting-up-a-proxy-with-web-appbuilder-for-arcgis-developer-edition/" title="https://blogs.esri.com/esri/supportcenter/2015/10/28/setting-up-a-proxy-with-web-appbuilder-for-arcgis-developer-edition/"&gt;Setting up a proxy with Web AppBuilder Developer Edition | Support Services Blog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:00:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734903#M19413</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-16T20:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Write data via a secured GP service to the server - Token required error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734904#M19414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert always. I set it up like following, but threw "SyntaxError: Unexpected token &amp;lt;". I used Application ID for the clientId. Where to get the clientSecret?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;config.json&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/324481_pastedImage_2.png" style="width: 620px; height: 133px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proxy.config&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/324480_pastedImage_1.png" style="width: 819px; height: 74px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734904#M19414</guid>
      <dc:creator>Alexwang</dc:creator>
      <dc:date>2017-02-16T21:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Write data via a secured GP service to the server - Token required error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734905#M19415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When your register your app you get a appid and client secret:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/applications/#/new/" title="https://developers.arcgis.com/applications/#/new/"&gt;https://developers.arcgis.com/applications/#/new/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://doc.arcgis.com/en/arcgis-online/share-maps/add-items.htm#esri_section1_55703f1ee9c845c3b07bbd85221fb074" title="http://doc.arcgis.com/en/arcgis-online/share-maps/add-items.htm#esri_section1_55703f1ee9c845c3b07bbd85221fb074"&gt;http://doc.arcgis.com/en/arcgis-online/share-maps/add-items.htm#esri_section1_55703f1ee9c845c3b07bbd85221fb074&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are probably better off using the username and password parameters in the ServerUrl instead, if you don't know about the clientSecret.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/write-data-via-a-secured-gp-service-to-the-server/m-p/734905#M19415</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-16T21:36:29Z</dc:date>
    </item>
  </channel>
</rss>

