<?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: Not able to Access Feature Layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227107#M79181</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/400217"&gt;@LaurenBoyd&lt;/a&gt;&amp;nbsp;when I got to Content and Items its asking me to create an application with OAuth2.0. I created the application but I'm not sure what to do next&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Charanb_0-1667235832360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54831i2D2E72742CBB55C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charanb_0-1667235832360.png" alt="Charanb_0-1667235832360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 18:17:45 GMT</pubDate>
    <dc:creator>TheGamer</dc:creator>
    <dc:date>2022-10-31T18:17:45Z</dc:date>
    <item>
      <title>Not able to Access Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227023#M79174</link>
      <description>&lt;P&gt;I have multiple feature layers being hosted on my account (share setting is set to owner).&amp;nbsp; I cannot see any of the layers. I have implemented the esriConfig.apikey into my code but I'm not able to access the layers&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Charanb_0-1667232182613.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54826i3F98CF794FE49E38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charanb_0-1667232182613.png" alt="Charanb_0-1667232182613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7278"&gt;@JeffreyWilkerson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 16:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227023#M79174</guid>
      <dc:creator>TheGamer</dc:creator>
      <dc:date>2022-10-31T16:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Access Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227087#M79178</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/595823"&gt;@TheGamer&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;Did you configure your API key to access those layers or webmap? This needs to be done explicitly in the API key settings. Here is the documentation outlining the details on accessing layers and webmaps via API keys:&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#access-content-and-items" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#access-content-and-items&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also a tutorial that shows you how to configure your API key to access specific data:&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/create-and-manage-an-api-key/#content-and-items" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/create-and-manage-an-api-key/#content-and-items&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 16:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227087#M79178</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2022-10-31T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Access Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227107#M79181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/400217"&gt;@LaurenBoyd&lt;/a&gt;&amp;nbsp;when I got to Content and Items its asking me to create an application with OAuth2.0. I created the application but I'm not sure what to do next&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Charanb_0-1667235832360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54831i2D2E72742CBB55C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charanb_0-1667235832360.png" alt="Charanb_0-1667235832360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 18:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227107#M79181</guid>
      <dc:creator>TheGamer</dc:creator>
      <dc:date>2022-10-31T18:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to Access Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227204#M79185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/595823"&gt;@TheGamer&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;Sounds like you have an ArcGIS Online account and API keys cannot be used to access secure content with this account type. This is outlined in the note section:&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#access-content-and-items" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#access-content-and-items&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That means you must use OAuth 2.0 to authenticate your application with user logins to access your secure data. Here's the JS API documentation on how to implement this with OAuth 2.0:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/secure-resources/#user-logins" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/secure-resources/#user-logins&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The OAuth information needs to be registered with the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html" target="_self"&gt;IdentityManager&lt;/A&gt; in your application. Here's a sample showing how to set up this workflow:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 18:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-access-feature-layers/m-p/1227204#M79185</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2022-10-31T18:30:44Z</dc:date>
    </item>
  </channel>
</rss>

