<?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: Prevent authentication prompt in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1278962#M80888</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" target="_self"&gt;esriConfig.request.useIdentity&lt;/A&gt; to false.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Undral&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 21:54:46 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2023-04-14T21:54:46Z</dc:date>
    <item>
      <title>Prevent authentication prompt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1278200#M80861</link>
      <description>&lt;P&gt;As we use multiple servers to connect the spatial data from, some of them have authentication built into them, thus triggering a authentication prompt when attempting to load it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to prevent this prompt from triggering, instead I want to have it trigger a function called recordFailureRequest().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is how far i got:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;try {
const data = await mapServerLayer.loadAll();
//process data
} catch (error) {
recordFailureRequest(error);
return null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 12:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1278200#M80861</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2023-04-13T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent authentication prompt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1278962#M80888</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" target="_self"&gt;esriConfig.request.useIdentity&lt;/A&gt; to false.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Undral&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 21:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1278962#M80888</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-04-14T21:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent authentication prompt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1279003#M80892</link>
      <description>&lt;P&gt;That seems to have done the trick so far.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 02:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-authentication-prompt/m-p/1279003#M80892</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2023-04-15T02:18:40Z</dc:date>
    </item>
  </channel>
</rss>

