<?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: Catching IdentityManager prompt when loading ArcGIS Online webmap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322594#M29696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Loading the compact build introduced some other changes to the application that we didn't want. Are there any other ways to either: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Stop the IdentityManager or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Find an attach point for the IdentifyManager, either in arcgis.utils where I'm calling createMap, or wherever, to attach an event when it shows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 19:00:35 GMT</pubDate>
    <dc:creator>KenDoman</dc:creator>
    <dc:date>2014-05-23T19:00:35Z</dc:date>
    <item>
      <title>Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322591#M29693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have an application that loads a publicly available webmap from ArcGIS Online. Every once in a while, the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html"&gt;Identity Manager&lt;/A&gt;&lt;SPAN&gt; pops up and challenges us to access the application. When this happens, usually there's something wrong with our account. But that's beside the point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because the application won't be used to load private data, or data behind token security, I need to intercept the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html#event-dialog-create"&gt;'dialog-create'&lt;/A&gt;&lt;SPAN&gt; event from the IdentityManager, and automatically close the dialog to trigger the error loading event. How do I access the IdentityManager when I call &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html"&gt;arcgisUtils.createMap&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 15:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322591#M29693</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2014-05-15T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322592#M29694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you try switching to the compact build? This doesn't include the IdentityManager by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/inside_compactbuild.html"&gt;https://developers.arcgis.com/javascript/jshelp/inside_compactbuild.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 19:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322592#M29694</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2014-05-16T19:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322593#M29695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that helped. It introduced another issue somewhere else, but I'll save that for another forum post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 17:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322593#M29695</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2014-05-22T17:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322594#M29696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Loading the compact build introduced some other changes to the application that we didn't want. Are there any other ways to either: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Stop the IdentityManager or &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Find an attach point for the IdentifyManager, either in arcgis.utils where I'm calling createMap, or wherever, to attach an event when it shows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 19:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322594#M29696</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2014-05-23T19:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322595#M29697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could use the &lt;/SPAN&gt;&lt;A href="http://jso.arcgis.com"&gt;JavaScript Web Optimizer&lt;/A&gt;&lt;SPAN&gt; to create a custom build that does not include the IndentityManager.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 20:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322595#M29697</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2014-06-10T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322596#M29698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I ended up doing was to test for the presence of &lt;A href="https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html"&gt;ESRI's Identity Manager Dialog&lt;/A&gt; using dojo/query, If the dialog was present, I hid the dialog and presented my own error message. Below I've added some code I used to search for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var scanForLogin;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcgisUtils.createMap(agolId, mapDivId, { mapOptions: mapOptions })&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(onSuccess, onFailure);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// check if a login is required.&lt;/P&gt;&lt;P&gt;require(["dojo/query", "dijit/registry"], function (dojoQuery, registry) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var loginChecks = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanForLogin = window.setInterval(function () {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // testing access to sign in node&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var signInNode = dojoQuery(".esriSignInDialog"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; promptDialog;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // if there is a signin node&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (signInNode.length) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; promptDialog = registry.byNode(signInNode[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; promptDialog.hide(); // hide the prompt dialog&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onFailure({message: "Map failed to load properly"});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (this.loginChecks &amp;gt; 4) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // stops checking after five times (over 3 seconds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.clearInterval(this.scanForLogin);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loginChecks++;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 600);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function onSuccess (response) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // stop checking for login&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.clearInterval(scanForLogin);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function onFailure (err) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // stop checking for login&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.clearInterval(scanForLogin);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(err.message || err.Message);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 17:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322596#M29698</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2014-08-28T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322597#M29699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone, (especially at ESRI), have a solution to this that doesn't require using a completely different build of the API or having an interval that hides the popup after the fact?&amp;nbsp; Is there really no way to stop it?&amp;nbsp; If our credentials expire or the layer cannot load for some other reason, we certainly don't want our users to get an ugly, clear popup that has absolutely no meaning to them (the users certainly don't have access to the username and password, heck, I don't even have access to them), we just want it to fail gracefully so we can show the user that the layer has failed and log it so someone who does have access to these things can fix it.&amp;nbsp; It seems silly to show this login box by default, since the consumer of the layer (ostensibly me) and the consumer of the website (our clients) are completely different and showing this failure to properly authenticate on our part to our customers is very unprofessional.&amp;nbsp; Is there a way to fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 19:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322597#M29699</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2014-10-31T19:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Catching IdentityManager prompt when loading ArcGIS Online webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322598#M29700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is to set the global reference to null in your first &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;require callback using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14207445013365082" jivemacro_uid="_14207445013365082"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;esri.id = null;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 19:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/catching-identitymanager-prompt-when-loading/m-p/322598#M29700</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2015-01-08T19:15:31Z</dc:date>
    </item>
  </channel>
</rss>

