<?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: How to extend the IdentityManger or IdentityManagerBase in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111219#M10343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To respond to your first question, the api says that you can access (and modify) the dialog after the onDialogCreate() event. If I wanted to do that, I would hide the serverLink and resLink classes of the dialog and append/prepend what you wanted to change the prompt to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 13:36:46 GMT</pubDate>
    <dc:creator>MattLane</dc:creator>
    <dc:date>2013-02-25T13:36:46Z</dc:date>
    <item>
      <title>How to extend the IdentityManger or IdentityManagerBase</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111218#M10342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how it would be possible change the appearance and behaviour of the IdentityManager?&amp;nbsp; I'm making a module that in theory can be used in any application that has a map using the JavaScript API.&amp;nbsp; When it connects to secured services, it is possible to let the IdentityManager work automatically.&amp;nbsp; However, there are a couple things I'd like to be able to control.&amp;nbsp; First, it would be ideal to change the appearance of the login prompt, so that it is clear that the login is related to the module I've created.&amp;nbsp; Otherwise, users need to recognize the url displayed in the IdentityManager in order to know what credentials to input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other problem is how to handle HTTPS encryption of secure logins.&amp;nbsp; The web page that loads the module is loaded using HTTPS, then there's no problem.&amp;nbsp; But if the module I create needs to be usable within an unencrypted web page, browser security limits our options for sending/receiving data to an HTTPS service from JavaScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only workaround I can think of for maintaining encryption when sending username/passwords is to securely submit the login information through HTTPS in a hidden IFRAME to a script that generates tokens on the server.&amp;nbsp; The document that loads inside the iframe can then redirect to a non-encrypted location with the token in the URL, which the parent document can access.&amp;nbsp; If I use this method, I can create an IdentityManager JSON object that contains the token information and call esri.id.initialize( ... ).&amp;nbsp; Everything works fine at this point, using the token for secured services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, what should I do to deal with the expiry of tokens?&amp;nbsp; Should I just create tokens with very long expiration limits, and not worry about it...or is there a way to control what the identity manager does when it comes time to refresh a token?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 20:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111218#M10342</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-02-22T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend the IdentityManger or IdentityManagerBase</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111219#M10343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To respond to your first question, the api says that you can access (and modify) the dialog after the onDialogCreate() event. If I wanted to do that, I would hide the serverLink and resLink classes of the dialog and append/prepend what you wanted to change the prompt to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 13:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111219#M10343</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2013-02-25T13:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend the IdentityManger or IdentityManagerBase</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111220#M10344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to modify the text displayed in the dialog, look at 'esri.bundle.identity.info' string.&amp;nbsp; Event though the '${server}' and '${resource}' template parts must be present, but you can hide them via css.&amp;nbsp; Also, the dialog and buttons are available to manipulate only after the dialog is created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.bundle.identity.info = "Please sign in to MYSITE.&amp;lt;span class='dijitOffScreen'&amp;gt;${server}${resource}&amp;lt;/span&amp;gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(esri.id,'onDialogCreate',function(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; esri.hide(esri.id.dialog.closeButtonNode);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; esri.hide(esri.id.dialog.btnCancel_.domNode);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-extend-the-identitymanger-or/m-p/111220#M10344</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2013-02-25T15:21:49Z</dc:date>
    </item>
  </channel>
</rss>

