<?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: Login to ArcGIS Server Secured Services in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679428#M63315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect Jon!&amp;nbsp; I had the IdentityManager listed in the require statement, but I did not have it listed in the function variables.&amp;nbsp; Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 17:52:47 GMT</pubDate>
    <dc:creator>TomSellsted</dc:creator>
    <dc:date>2014-01-22T17:52:47Z</dc:date>
    <item>
      <title>Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679416#M63303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings!&amp;nbsp; I am working on a JS API app that uses some secured ArcGIS Server services.&amp;nbsp; The IdentityManager does work well for this purpose, but I am using a Windows Domain for my user store and the app users have to type in a complete domain\username to be able to properly log in.&amp;nbsp; This is not a big deal on a desktop, but it is much more difficult from an iPhone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to bypass the IdentityManager and save the username, so they don't have to type it in? They would still need to type in a password?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 23:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679416#M63303</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-16T23:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679417#M63304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What about local storage or a cookie? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would require a user to log in once, but you could save the username for future logins on that device.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679417#M63304</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-01-17T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679418#M63305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would definitely use local storage or a cookie, but how do I populate the IdentityManager with the username?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679418#M63305</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-17T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679419#M63306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out the Esri JSAPI documentation, there's alot of samples and tutorials for you to digest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample uses local storage.... This is probably the one you're after:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's another sample about using the Identity Manager:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you have any more questions and don't forget to mark this thread as answered when you are completely satisfied!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679419#M63306</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-01-17T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679420#M63307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have used both of these examples.&amp;nbsp; This is not what I am looking for.&amp;nbsp; I am trying to populate the username field of the IdentityManager and have the user key their password to login.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679420#M63307</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-17T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679421#M63308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why can't you use javascript to populate the username input element directly via DOM manipulation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You know the id of the input element ahead of time so you can push a username into the value of that element from local storage. (Heck you can even use dijit.byId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you explain why this wouldn't work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679421#M63308</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-01-17T15:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679422#M63309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is what I am trying to do.&amp;nbsp; I guess I don't know the id of the username input element presented by the IdentityManager.&amp;nbsp; I would use the on-create event of the IdentityManager to populate the username input field.&amp;nbsp; I am sure I am going to dope slap my forehead, but it has eluded me.&amp;nbsp; Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679422#M63309</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-17T15:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679423#M63310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK great! I had wrongfully assumed you had tried this method first as it is the easiest and most straight forward... my apologies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the sample page as a demo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/widget_identitymanager/"&gt;http://developers.arcgis.com/en/javascript/samples/widget_identitymanager/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Firebug, I can see that the id of the input element is 'dijit_form_ValidationTextBox_0'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can edit the value of the text field like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dijit.byId("dijit_form_ValidationTextBox_0").set("value", "jonuihlein");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Screenshot also attached. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you have any more questions and don't forget to mark this thread as answered when you are completely satisfied!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679423#M63310</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-01-17T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679424#M63311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perfect!&amp;nbsp; You probably did hear me dope slap my forehead.&amp;nbsp; I use FireBug too.&amp;nbsp; I need to spend some time inspecting the HTML elements.&amp;nbsp; Thanks very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 16:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679424#M63311</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-17T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679425#M63312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The dialog-create event fires before the dialog is created.&amp;nbsp; I have not been able to figure out how to populate the field as the dialog is presented.&amp;nbsp; Any ideas of what event I need to listen for?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 23:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679425#M63312</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-21T23:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679426#M63313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It appears that the dialog-create fires before the dialog is actually created, not just after.&amp;nbsp; The only way I could find to add an event to it was a bit of jQuery.&amp;nbsp; This is not ideal as the dialog name might change ect...&amp;nbsp; It would be ideal to have another event that would fire when the dialog is displayed.&amp;nbsp; Here is the jquery line of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;$('body').on('show','#dijit_Dialog_0',loadUsername);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 17:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679426#M63313</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-22T17:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679427#M63314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did some quick research and the dialog-create event was working for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
IdentityManager.on('dialog-create', testFunction);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
function testFunction(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentityManager.dialog.txtUser_.set("value", "jon");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //dijit.byId("dijit_form_ValidationTextBox_0").set("value", "jon");
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use either of these... the dialog object itself is referenced as a property of the IdentityManager object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps... I suspect it may not be the penultimate solution but will wait to hear from you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679427#M63314</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2021-12-12T04:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Login to ArcGIS Server Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679428#M63315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect Jon!&amp;nbsp; I had the IdentityManager listed in the require statement, but I did not have it listed in the function variables.&amp;nbsp; Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 17:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/login-to-arcgis-server-secured-services/m-p/679428#M63315</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2014-01-22T17:52:47Z</dc:date>
    </item>
  </channel>
</rss>

