<?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: Accessing secured FeatureLayer on ArcGIS online with JavaScript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1081885#M73988</link>
    <description>&lt;P&gt;Did you review this post? Might be helpful&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-access-a-group-shared-feature-layer-in-a/m-p/568424/highlight/true#M15186" target="_blank"&gt;https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-access-a-group-shared-feature-layer-in-a/m-p/568424/highlight/true#M15186&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 18:13:39 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2021-07-22T18:13:39Z</dc:date>
    <item>
      <title>Accessing secured FeatureLayer on ArcGIS online with JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1065886#M73428</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;SPAN&gt;Hi experts,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;SPAN&gt;I am building a web app outside of ArcGIS. I am connecting the web app with ArcGIS online resources via the ArcGIS JavaScript API v4.19, which all goes pretty smoothely.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;The challenge arises when I want to load specific&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;secured&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ArcGIS online content via the ArcGIS JavaScript API, specifically from some FeatureLayers which are secured. I looked into the documentation and it seems the best way forward would be a so-called 'application login'. For this I want to setup an OAuth application login based on Client ID and Client Secret. With these two I can get a valid token via OAuth and use that token to access the content by feeding the token to the IdentityManager via the JavaScript API.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem I have is that I am continously getting the same error with name&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;identity manager not authorized&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and message&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;You are currently signed in as: AppID. You do not have access to this resource:&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So this is were it goes wrong currently, I can't seem to figure out where to make it explicit on the ArcGIS online side that this specific secured FeatureLayer can be accessed via this application login, hence currently I am getting errors that the valid token and app id don't have access to the resource, being the end-point of the secured FeatureLayer.&lt;/P&gt;&lt;P&gt;Does anybody know how to associate a secured FeatureLayer in ArcGIS online to an application login?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jun 2021 06:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1065886#M73428</guid>
      <dc:creator>IvoSturm</dc:creator>
      <dc:date>2021-06-10T06:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secured FeatureLayer on ArcGIS online with JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1067835#M73480</link>
      <description>&lt;P&gt;Anybody? Sounds like a very common use case, so eager to hear from other peoples experience.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1067835#M73480</guid>
      <dc:creator>IvoSturm</dc:creator>
      <dc:date>2021-06-14T11:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secured FeatureLayer on ArcGIS online with JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1081885#M73988</link>
      <description>&lt;P&gt;Did you review this post? Might be helpful&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-access-a-group-shared-feature-layer-in-a/m-p/568424/highlight/true#M15186" target="_blank"&gt;https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-access-a-group-shared-feature-layer-in-a/m-p/568424/highlight/true#M15186&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 18:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-secured-featurelayer-on-arcgis-online/m-p/1081885#M73988</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-07-22T18:13:39Z</dc:date>
    </item>
  </channel>
</rss>

