<?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: ArcGIS API for JavaScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667108#M62292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of the security workflows happen in the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html"&gt;IdentityManager &lt;/A&gt;module. You can &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#generateToken"&gt;generate &lt;/A&gt;and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken"&gt;register &lt;/A&gt;tokens there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2020 20:16:01 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2020-04-20T20:16:01Z</dc:date>
    <item>
      <title>ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667107#M62291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to access available token in ArcGIS API for JavaScript so that it can be appended to each XMLHttpRequest?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue here is whenever map's load dojo event triggers, I seeToken required (499) response after which ArcGIS JavaScript API internally creates token and appends it to each following XMLHttpRequest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little bit of background. Portal for ArcGIS is federated with ArcGIS Server with Web Tier (IWA Authentication). Application consuming REST Services is ASP.Net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meghan Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667107#M62291</guid>
      <dc:creator>MeghanKulkarni</dc:creator>
      <dc:date>2020-04-20T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667108#M62292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of the security workflows happen in the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html"&gt;IdentityManager &lt;/A&gt;module. You can &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#generateToken"&gt;generate &lt;/A&gt;and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken"&gt;register &lt;/A&gt;tokens there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 20:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667108#M62292</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2020-04-20T20:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667109#M62293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Can you provide 3.x version API reference link, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meghan Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 20:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667109#M62293</guid>
      <dc:creator>MeghanKulkarni</dc:creator>
      <dc:date>2020-04-20T20:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667110#M62294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, here is the reference for 3x:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/identitymanager-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/identitymanager-amd.html"&gt;IdentityManager | API Reference | ArcGIS API for JavaScript 3.32&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3x has the same generate/register functions for tokens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 20:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667110#M62294</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2020-04-20T20:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667111#M62295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think I can use the OAuth protocol. The consuming application is based on ASP.NET.&amp;nbsp; Here's an example request for obtaining Legend of a map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #cdcdcd; "&gt;https://&amp;lt;domain&amp;gt;/server/rest/services/SC/MapServer/0/images/4416e96c2b84a29886cd03bf8edb2fa9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each Time I get 302 HTTP error code since it does not have token info. When I open a separate window it does resolve since I've access to this content.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the reason being ArcGIS server internally sets cookie 'agstoken' for each subsequent request. I verified this in the Cookies section in Chrome's Dev Tools. Is there a way to do this JavaScript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meghan Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:02:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667111#M62295</guid>
      <dc:creator>MeghanKulkarni</dc:creator>
      <dc:date>2020-04-20T21:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667112#M62296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;302 HTTP status codes aren't usually associated with a token issue. There may be something else going on here. I'd suggest contacting Esri Support Services so an analyst can take a closer look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 19:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript/m-p/667112#M62296</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2020-04-22T19:54:06Z</dc:date>
    </item>
  </channel>
</rss>

