<?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: Encrypting geojson polygon in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051081#M72723</link>
    <description>&lt;P&gt;There's nothing in the JSAPI to help with this. There's identity tools for ArcGIS services, hosted and enterprise, but not client encryption.&lt;/P&gt;&lt;P&gt;This use case is a little unusual. A case like this is usually handled by proving an API between your postgres and clients. The API can have it's own authentication or a referrer whitelist. But you'd need to manage this yourself in the client side app with JWT or other authentication scheme.&lt;/P&gt;&lt;P&gt;But again, these are custom auth workflows outside the scope of the javascript api.&lt;/P&gt;&lt;P&gt;Alternatively, you could have a periodic script export from your db to ArcGIS online, publish or update geojson to a featureservice and use ArcGIS auth in your app.&lt;/P&gt;&lt;P&gt;Lots of fun options.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Apr 2021 18:45:39 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-04-24T18:45:39Z</dc:date>
    <item>
      <title>Encrypting geojson polygon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051080#M72722</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am in the process of building a website that displays items on the map, part of the work I'm doing is drawing my own polygons using&amp;nbsp; &amp;nbsp;&lt;A href="http://geojson.io" target="_blank" rel="noopener"&gt;http://geojson.io&lt;/A&gt;&amp;nbsp;and then I load them into my Postgresql spatial database. The polygons are being served over HTTP using my REST API in geojson format which is completely separate from my client.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am building the client using ReactJS and I'm using the ArcGIS API. I am able to load the polygons over http and add them as a layer however, I am trying to encrypt that data in a way that only my application will be able to render them on the map since I'm spending a lot of time drawing these polygons and I would like to protect that work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have been looking around for solutions but I am not able to find something that looks like it would work well, my best solution so far is to somehow create a custom encryption and decrypt the data once it's loaded in the client and before creating my ArcGIS polygon.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there something built into the API that would help in some thing like this ? are there any better ideas to do this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I appreciate your help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;L&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 18:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051080#M72722</guid>
      <dc:creator>LaithAbbas</dc:creator>
      <dc:date>2021-04-24T18:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypting geojson polygon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051081#M72723</link>
      <description>&lt;P&gt;There's nothing in the JSAPI to help with this. There's identity tools for ArcGIS services, hosted and enterprise, but not client encryption.&lt;/P&gt;&lt;P&gt;This use case is a little unusual. A case like this is usually handled by proving an API between your postgres and clients. The API can have it's own authentication or a referrer whitelist. But you'd need to manage this yourself in the client side app with JWT or other authentication scheme.&lt;/P&gt;&lt;P&gt;But again, these are custom auth workflows outside the scope of the javascript api.&lt;/P&gt;&lt;P&gt;Alternatively, you could have a periodic script export from your db to ArcGIS online, publish or update geojson to a featureservice and use ArcGIS auth in your app.&lt;/P&gt;&lt;P&gt;Lots of fun options.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 18:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051081#M72723</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-04-24T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypting geojson polygon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051082#M72724</link>
      <description>&lt;P&gt;Thank you for those ideas, maybe using a featureservice would work. Those polygons are local administrative areas and they wouldn't change but I have to load them on demand as soon as the user changes the area.&lt;BR /&gt;&lt;BR /&gt;I will experiment more with that&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Apr 2021 18:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/encrypting-geojson-polygon/m-p/1051082#M72724</guid>
      <dc:creator>LaithAbbas</dc:creator>
      <dc:date>2021-04-24T18:58:14Z</dc:date>
    </item>
  </channel>
</rss>

