<?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 Accessing Landsat and Sentinel Services with Esri JS version 3 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-landsat-and-sentinel-services-with-esri/m-p/1137659#M76112</link>
    <description>&lt;P&gt;I'm trying to access sentinel 2 and landsat through Esri JS version 3.39 at the following urls:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer" target="_blank" rel="noopener"&gt;https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer" target="_blank" rel="noopener"&gt;https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;According to the documentation, you can access the services in the following manner.&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#b22222"&gt;Important Note:&lt;/FONT&gt;&amp;nbsp;This item requires an ArcGIS Online organizational subscription or an ArcGIS Developer account and does not consume credits. To access this item, you'll need to do one of the following:&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;Sign in with an account that is a member of an organizational subscription&lt;/LI&gt;&lt;LI&gt;Sign in with a developer account&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://goto.arcgis.com/termsofuse/registeranapplication" target="_blank" rel="noopener"&gt;Register an application&lt;/A&gt;&amp;nbsp;and use your application's credentials.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have created an api key through the developer dashboard and tried to set the apiKey in esriConfig.&lt;BR /&gt;esri.config.apiKey = "myApiKeyHere";&lt;BR /&gt;I have also attempted to pass it in the url&amp;nbsp; with url?token=myApiKeyHEre&lt;/P&gt;&lt;P&gt;When I try to call ImageServiceIdentifyTask, I get the following response&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{"error":{"code":499,"message":"Token Required","details":[]}}&lt;BR /&gt;&lt;BR /&gt;I have also attempted to use the generateToken link here&lt;BR /&gt;&lt;A href="https://landsat2.arcgis.com/arcgis/tokens/generateToken" target="_blank" rel="noopener"&gt;https://landsat2.arcgis.com/arcgis/tokens/generateToken&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Upon entering my credentials, I get the following message:&lt;BR /&gt;&lt;BR /&gt;You are not authorized to access this information&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What is the correct method to authenticate with these services using Esri JS version 3.39?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 26 Jan 2022 22:06:33 GMT</pubDate>
    <dc:creator>EricDurbin</dc:creator>
    <dc:date>2022-01-26T22:06:33Z</dc:date>
    <item>
      <title>Accessing Landsat and Sentinel Services with Esri JS version 3</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-landsat-and-sentinel-services-with-esri/m-p/1137659#M76112</link>
      <description>&lt;P&gt;I'm trying to access sentinel 2 and landsat through Esri JS version 3.39 at the following urls:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer" target="_blank" rel="noopener"&gt;https://landsat2.arcgis.com/arcgis/rest/services/Landsat8_Views/ImageServer&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer" target="_blank" rel="noopener"&gt;https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;According to the documentation, you can access the services in the following manner.&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#b22222"&gt;Important Note:&lt;/FONT&gt;&amp;nbsp;This item requires an ArcGIS Online organizational subscription or an ArcGIS Developer account and does not consume credits. To access this item, you'll need to do one of the following:&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;Sign in with an account that is a member of an organizational subscription&lt;/LI&gt;&lt;LI&gt;Sign in with a developer account&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://goto.arcgis.com/termsofuse/registeranapplication" target="_blank" rel="noopener"&gt;Register an application&lt;/A&gt;&amp;nbsp;and use your application's credentials.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have created an api key through the developer dashboard and tried to set the apiKey in esriConfig.&lt;BR /&gt;esri.config.apiKey = "myApiKeyHere";&lt;BR /&gt;I have also attempted to pass it in the url&amp;nbsp; with url?token=myApiKeyHEre&lt;/P&gt;&lt;P&gt;When I try to call ImageServiceIdentifyTask, I get the following response&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{"error":{"code":499,"message":"Token Required","details":[]}}&lt;BR /&gt;&lt;BR /&gt;I have also attempted to use the generateToken link here&lt;BR /&gt;&lt;A href="https://landsat2.arcgis.com/arcgis/tokens/generateToken" target="_blank" rel="noopener"&gt;https://landsat2.arcgis.com/arcgis/tokens/generateToken&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Upon entering my credentials, I get the following message:&lt;BR /&gt;&lt;BR /&gt;You are not authorized to access this information&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What is the correct method to authenticate with these services using Esri JS version 3.39?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jan 2022 22:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-landsat-and-sentinel-services-with-esri/m-p/1137659#M76112</guid>
      <dc:creator>EricDurbin</dc:creator>
      <dc:date>2022-01-26T22:06:33Z</dc:date>
    </item>
  </channel>
</rss>

