<?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 applyEdits API via post, authentication for system in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/applyedits-api-via-post-authentication-for-system/m-p/1175605#M33164</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a 10.9.1 base installation of Enterprise and are using SAML for authentication via an AD FS idp. Built-in accounts are also employed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are looking for a way to do this &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm&lt;/A&gt; via the hosting arcgis server's rest API (in short another system will receive data associated with a feature in a feature service and issue a http post to /FeatureServer/applyEdits in order to update a feature. First it needs to authenticate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've read &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/authentication.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/authentication.htm&lt;/A&gt; which appears to suggest the generateToken method:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;Applications should continue to use the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/authentication.htm#ESRI_SECTION1_8655B4ABB6784CBC99204E0B146CE1CA" target="_blank" rel="noopener"&gt;non OAuth2-based applications&lt;/A&gt; authentication model for both user logins and app logins.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;(Which makes sense to me as an Enterprise user account with permissions to edit said featureservice needs to make the edits and it should likely be a built in account for a system)&lt;/P&gt;&lt;P&gt;I tried to generate a token with portal/sharing/rest/generateToken for the IP of my devel machine and then to formulate a http post with Bearer Token and an url encoded form with the "edits" key and a valid array of edit jsons*, as well as the "f" param with "pjson" for an informational reply and I kept getting "invalid token". (With no auth there was a "token required" message.)&lt;/P&gt;&lt;P&gt;* When using the HTML form at ../FeatureServer/applyEdits the same edits worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Should we be using another strategy? (I may have misunderstood something significant)&lt;/P&gt;&lt;P&gt;-If not, have you any idea why my attempts failed?&lt;/P&gt;&lt;P&gt;Many thanks for any piece of wisdom! : )&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 15:40:53 GMT</pubDate>
    <dc:creator>DavidPersson</dc:creator>
    <dc:date>2022-05-19T15:40:53Z</dc:date>
    <item>
      <title>applyEdits API via post, authentication for system</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/applyedits-api-via-post-authentication-for-system/m-p/1175605#M33164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a 10.9.1 base installation of Enterprise and are using SAML for authentication via an AD FS idp. Built-in accounts are also employed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are looking for a way to do this &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-.htm&lt;/A&gt; via the hosting arcgis server's rest API (in short another system will receive data associated with a feature in a feature service and issue a http post to /FeatureServer/applyEdits in order to update a feature. First it needs to authenticate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've read &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/authentication.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/authentication.htm&lt;/A&gt; which appears to suggest the generateToken method:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;Applications should continue to use the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/authentication.htm#ESRI_SECTION1_8655B4ABB6784CBC99204E0B146CE1CA" target="_blank" rel="noopener"&gt;non OAuth2-based applications&lt;/A&gt; authentication model for both user logins and app logins.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;(Which makes sense to me as an Enterprise user account with permissions to edit said featureservice needs to make the edits and it should likely be a built in account for a system)&lt;/P&gt;&lt;P&gt;I tried to generate a token with portal/sharing/rest/generateToken for the IP of my devel machine and then to formulate a http post with Bearer Token and an url encoded form with the "edits" key and a valid array of edit jsons*, as well as the "f" param with "pjson" for an informational reply and I kept getting "invalid token". (With no auth there was a "token required" message.)&lt;/P&gt;&lt;P&gt;* When using the HTML form at ../FeatureServer/applyEdits the same edits worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Should we be using another strategy? (I may have misunderstood something significant)&lt;/P&gt;&lt;P&gt;-If not, have you any idea why my attempts failed?&lt;/P&gt;&lt;P&gt;Many thanks for any piece of wisdom! : )&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/applyedits-api-via-post-authentication-for-system/m-p/1175605#M33164</guid>
      <dc:creator>DavidPersson</dc:creator>
      <dc:date>2022-05-19T15:40:53Z</dc:date>
    </item>
  </channel>
</rss>

