<?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: How to register a token for a web map and its layers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-register-a-token-for-a-web-map-and-its/m-p/1641601#M87509</link>
    <description>&lt;P&gt;The issue was completely unrelated to how I've set up registerToken. When generating the token, I had to set client to requestip., and only the first registerToken was necessary.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Aug 2025 16:18:01 GMT</pubDate>
    <dc:creator>AlexDang</dc:creator>
    <dc:date>2025-08-13T16:18:01Z</dc:date>
    <item>
      <title>How to register a token for a web map and its layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-register-a-token-for-a-web-map-and-its/m-p/1641378#M87507</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a connector that displays a web map in a dashboard based on a selection. When the dashboard is opened,&amp;nbsp;I am generating a token via backend and passing it to the front end to call IdentityManager.registerToken(), and then initializing the web map.&lt;/P&gt;&lt;P&gt;I am registering a token for both the web map endpoint and the layer endpoint:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    IdentityManager.registerToken({
      server: "https://{portalUrl}/portal/sharing/rest",
      token: ArcGISToken.Token,
      // userId: "admin_user", // optional but useful
      expires: ArcGISToken.Expires
    });

    IdentityManager.registerToken({
      server: "https://{portalUrl}/mapping/rest/services",
      token: ArcGISToken.Token,
      expires: ArcGISToken.Expires
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;However, it still prompts a login on my dashboard that says "Please sign in to access the item on ...". Am I missing something here? I want to be able to silently authenticate and bypass the login as I've already used the username and password stored in the configuration to retrieve the token.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 20:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-register-a-token-for-a-web-map-and-its/m-p/1641378#M87507</guid>
      <dc:creator>AlexDang</dc:creator>
      <dc:date>2025-08-12T20:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to register a token for a web map and its layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-register-a-token-for-a-web-map-and-its/m-p/1641601#M87509</link>
      <description>&lt;P&gt;The issue was completely unrelated to how I've set up registerToken. When generating the token, I had to set client to requestip., and only the first registerToken was necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 16:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-register-a-token-for-a-web-map-and-its/m-p/1641601#M87509</guid>
      <dc:creator>AlexDang</dc:creator>
      <dc:date>2025-08-13T16:18:01Z</dc:date>
    </item>
  </channel>
</rss>

