<?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: Feature service Token in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-service-token/m-p/1211424#M78666</link>
    <description>&lt;P&gt;Found a&amp;nbsp; better solution, I used this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  esriId.registerToken({
    server: FeatureLayerURL,
    token: token
  })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;esriID is from the library&amp;nbsp;&lt;SPAN&gt;"esri/identity/IdentityManager"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2022 09:43:08 GMT</pubDate>
    <dc:creator>Guy_srb</dc:creator>
    <dc:date>2022-09-11T09:43:08Z</dc:date>
    <item>
      <title>Feature service Token</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-service-token/m-p/1211423#M78665</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a problem using a secured feature service.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  esriConfig.request.interceptors.push({
    urls: FeatureLayerURL,
    before: function(params) {
      params.requestOptions.query = params.requestOptions.query || {};
      params.requestOptions.query.token = token;
    },
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code does work until I try to Edit features(using EditorViewModel) and then the portal login screen popup appear.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 08:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-service-token/m-p/1211423#M78665</guid>
      <dc:creator>Guy_srb</dc:creator>
      <dc:date>2022-09-11T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Feature service Token</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-service-token/m-p/1211424#M78666</link>
      <description>&lt;P&gt;Found a&amp;nbsp; better solution, I used this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  esriId.registerToken({
    server: FeatureLayerURL,
    token: token
  })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;esriID is from the library&amp;nbsp;&lt;SPAN&gt;"esri/identity/IdentityManager"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 09:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-service-token/m-p/1211424#M78666</guid>
      <dc:creator>Guy_srb</dc:creator>
      <dc:date>2022-09-11T09:43:08Z</dc:date>
    </item>
  </channel>
</rss>

