<?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 Disabling the Esri JavaScript API v4.x IdentityManager login prompt? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disabling-the-esri-javascript-api-v4-x/m-p/1223257#M79068</link>
    <description>&lt;DIV class=""&gt;&lt;P&gt;I have an application using 4.22 of the Esri JavaScript API. It references several layers from different sources. When one of these layers an outside ArcGIS Online Organization changes or is unavailable, for&amp;nbsp;whatever reason, the API presents the user with the ArcGIS Online sign in dialog. It must assume the layer it is looking for is secured and maybe it can reach it by signing in. This makes no sense to my users and I would like to disable the dialog or cancel the dialog when it opens. That way the layer will fail and notify the user it is not available. However, I can't find a way in the Identity Manager to do this.&lt;A href="https://bit.ly/3D8NN4B" target="_self"&gt;&amp;nbsp;&lt;/A&gt;The closest I can find is the Identity Manager has a dialog-create event. I can create a handler that catches the on dialog create event. But the only thing I can do at that point is set the visibility of the dialog to false. That doesn't actually cancel it. The layer is still waiting for input from the user and never fails. Is another way to disable, cancel, or suppress the dialog?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 26 Oct 2022 17:28:05 GMT</pubDate>
    <dc:creator>imranhashmi</dc:creator>
    <dc:date>2022-10-26T17:28:05Z</dc:date>
    <item>
      <title>Disabling the Esri JavaScript API v4.x IdentityManager login prompt?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disabling-the-esri-javascript-api-v4-x/m-p/1223257#M79068</link>
      <description>&lt;DIV class=""&gt;&lt;P&gt;I have an application using 4.22 of the Esri JavaScript API. It references several layers from different sources. When one of these layers an outside ArcGIS Online Organization changes or is unavailable, for&amp;nbsp;whatever reason, the API presents the user with the ArcGIS Online sign in dialog. It must assume the layer it is looking for is secured and maybe it can reach it by signing in. This makes no sense to my users and I would like to disable the dialog or cancel the dialog when it opens. That way the layer will fail and notify the user it is not available. However, I can't find a way in the Identity Manager to do this.&lt;A href="https://bit.ly/3D8NN4B" target="_self"&gt;&amp;nbsp;&lt;/A&gt;The closest I can find is the Identity Manager has a dialog-create event. I can create a handler that catches the on dialog create event. But the only thing I can do at that point is set the visibility of the dialog to false. That doesn't actually cancel it. The layer is still waiting for input from the user and never fails. Is another way to disable, cancel, or suppress the dialog?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Oct 2022 17:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disabling-the-esri-javascript-api-v4-x/m-p/1223257#M79068</guid>
      <dc:creator>imranhashmi</dc:creator>
      <dc:date>2022-10-26T17:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling the Esri JavaScript API v4.x IdentityManager login prompt?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disabling-the-esri-javascript-api-v4-x/m-p/1224439#M79088</link>
      <description>&lt;P&gt;The following works in 4.24.&amp;nbsp; As far as I can tell, it should also work in 4.22, but I haven't tested...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;identityManager.on("dialog-create", function() {
	identityManager.dialog.visible = false;

	window.setTimeout(function() {
		identityManager.dialog.content.emit("cancel", {});
	}, 250);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2022 00:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/disabling-the-esri-javascript-api-v4-x/m-p/1224439#M79088</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-10-22T00:49:50Z</dc:date>
    </item>
  </channel>
</rss>

