<?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 Authentication required for Geodatabase Sync in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-required-for-geodatabase-sync/m-p/1167976#M10924</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've tried to implement a download of a mobile geodatabase from an ArcGIS Online feature service followed by a sync based on the sample at &lt;A href="https://developers.arcgis.com/net/uwp/sample-code/edit-and-sync-features/" target="_blank"&gt;https://developers.arcgis.com/net/uwp/sample-code/edit-and-sync-features/.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have set the feature service as public (for testing) and the initial download using GenerateGeodatabase works ok, without any authentication. However, when I then try to perform a sync (download only) I'm getting prompted for ArcGIS credentials. If I enter credentials it just continues to prompt, then if I cancel I get an error as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Esri.ArcGISRuntime.ArcGISServerException: 'Service error code 401: Unable to synchronize replica.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Details:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;No permission to edit replica data : 96f78289-48df-4a19-9b4c-02352c905a44.'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So I have some questions:&lt;/P&gt;&lt;P&gt;1) Why does sync require credentials when download doesn't - even though the service is public?&lt;/P&gt;&lt;P&gt;2) The licensing documentation suggests both download and sync are available with a Lite license, which uses an API key. If the feature service was secured, what is the correct way to provide credentials if the app does not use a named user? Should we use application authentication?&lt;/P&gt;&lt;P&gt;Any thoughts appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 16:48:21 GMT</pubDate>
    <dc:creator>JohnFannon</dc:creator>
    <dc:date>2022-04-26T16:48:21Z</dc:date>
    <item>
      <title>Authentication required for Geodatabase Sync</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authentication-required-for-geodatabase-sync/m-p/1167976#M10924</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've tried to implement a download of a mobile geodatabase from an ArcGIS Online feature service followed by a sync based on the sample at &lt;A href="https://developers.arcgis.com/net/uwp/sample-code/edit-and-sync-features/" target="_blank"&gt;https://developers.arcgis.com/net/uwp/sample-code/edit-and-sync-features/.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have set the feature service as public (for testing) and the initial download using GenerateGeodatabase works ok, without any authentication. However, when I then try to perform a sync (download only) I'm getting prompted for ArcGIS credentials. If I enter credentials it just continues to prompt, then if I cancel I get an error as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Esri.ArcGISRuntime.ArcGISServerException: 'Service error code 401: Unable to synchronize replica.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Details:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;No permission to edit replica data : 96f78289-48df-4a19-9b4c-02352c905a44.'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So I have some questions:&lt;/P&gt;&lt;P&gt;1) Why does sync require credentials when download doesn't - even though the service is public?&lt;/P&gt;&lt;P&gt;2) The licensing documentation suggests both download and sync are available with a Lite license, which uses an API key. If the feature service was secured, what is the correct way to provide credentials if the app does not use a named user? Should we use application authentication?&lt;/P&gt;&lt;P&gt;Any thoughts appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 16:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authentication-required-for-geodatabase-sync/m-p/1167976#M10924</guid>
      <dc:creator>JohnFannon</dc:creator>
      <dc:date>2022-04-26T16:48:21Z</dc:date>
    </item>
  </channel>
</rss>

