<?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: Make the authentication dialog timeout/reappear with period of inactivity in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541397#M50427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you're logging in, working on the map for 61 minutes (enough to timeout the a default token) and your being prompted to log in again?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 19:42:04 GMT</pubDate>
    <dc:creator>JoshHevenor</dc:creator>
    <dc:date>2014-12-29T19:42:04Z</dc:date>
    <item>
      <title>Make the authentication dialog timeout/reappear with period of inactivity</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541394#M50424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the authentication dialog that appears for authentication timeout eventually with inactivity?&amp;nbsp; No mouse/keyboard activities?&lt;/P&gt;&lt;P&gt;If so, is it possible to control the time period of the inactivity to specify how long?&lt;/P&gt;&lt;P&gt;What happens when it times out?&amp;nbsp; For e.g. if the dialog reappears and user enters wrong credentials again, does it go to an error page?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 20:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541394#M50424</guid>
      <dc:creator>EdwardSohn2</dc:creator>
      <dc:date>2014-12-24T20:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Make the authentication dialog timeout/reappear with period of inactivity</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541395#M50425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can start a timer with window.timeout(function, 1000)&amp;nbsp; and it looks like you can get a reference to the window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html#dialog" title="https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html#dialog" rel="nofollow noopener noreferrer" target="_blank"&gt;IdentityManager | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.10/dijit/Dialog.html" title="http://dojotoolkit.org/reference-guide/1.10/dijit/Dialog.html" rel="nofollow noopener noreferrer" target="_blank"&gt;dijit/Dialog — The Dojo Toolkit - Reference Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haven't tried this, but something like this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Listen for dialog and time it out, will want this setup before layers are loaded
esriKernel.id.on("dialog-create", function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kernel.id.dialog.hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 30*1000) // 30 seconds
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541395#M50425</guid>
      <dc:creator>JoshHevenor</dc:creator>
      <dc:date>2021-12-11T23:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make the authentication dialog timeout/reappear with period of inactivity</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541396#M50426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The behavior I was seeing was the logon dialog appears out of the blue while working on the map.&lt;/P&gt;&lt;P&gt;I want to prevent this.&amp;nbsp; Was wondering perhaps there was a timeout value that was causing the dialog to reappear and if I can set this value to some max value.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either to 1) prevent the dialog from appearing or 2) tie this reappearance to some controlled process like period of inactivity rather than just timing out on its own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541396#M50426</guid>
      <dc:creator>EdwardSohn2</dc:creator>
      <dc:date>2014-12-29T19:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make the authentication dialog timeout/reappear with period of inactivity</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541397#M50427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you're logging in, working on the map for 61 minutes (enough to timeout the a default token) and your being prompted to log in again?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541397#M50427</guid>
      <dc:creator>JoshHevenor</dc:creator>
      <dc:date>2014-12-29T19:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make the authentication dialog timeout/reappear with period of inactivity</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541398#M50428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; The logon window just reappears (after initial logon) for some reason (whether it's timed out after 61 minutes or for some other).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I believe if the user just clicks on Cancel it just disappears (this is what the user reported, though I haven't confirmed yet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to either prevent this behavior so it does not reappear and implement my own timeout logic and reloading the page, or control it somehow so that I can time it out according to a specified timeout value (and also prevent user from just clicking on the Cancel button once it reappears of course)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-the-authentication-dialog-timeout-reappear/m-p/541398#M50428</guid>
      <dc:creator>EdwardSohn2</dc:creator>
      <dc:date>2014-12-29T20:40:14Z</dc:date>
    </item>
  </channel>
</rss>

