AnsweredAssumed Answered

IdentityManager "Aborted Sign-In process..." with createMap in IE

Question asked by myESRIUName on Nov 27, 2012
Latest reply on Nov 30, 2012 by myESRIUName
Hello all,

I have a web map on ArcGIS Online that is only accessible by people within my group; a user must log in to see it. I also have an application that uses esri.arcgis.utils.createMap to add that web map to my HTML page and, of course, this required that I include the line "dojo.require("esri.IdentityManager");" to my script (which is the only thing I can see as necessary from the documentation).

In Firefox (I am using FF16), when I load my page, I am correctly prompted with the Login dialog as shown in the example In IE (I am using IE9), when I point to the above example it works fine, but when I try to load my page, the createMap functionality returns the error "Aborted the Sign-In process to avoid sending password over insecure connection" and does not create the map. The sample, in contrast, does not use createMap, but instead actually defines and creates the individual layers and adds them to the map itself.

In an attempt to make this easy to reproduce for anyone who cares to have a look, the following sample is the same as that found at with the following changes:

1. I added a claro stylesheet and applied it to the BODY tag, so the Login Dialog would display with appropriate styling;
2. I added "dojo.require("esri.IdentityManager");"
3. I defined an "" (which you will have to change, of course). Although this does not appear to be necessary in FF, it does seem necessary in IE...that's fine. It's in my application too.
4. I changed the web map id to point to mine rather than the one from the sample so the Login Dialog would appear (at least, in FF).

So, after changing the proxyUrl, you should be able to load this page in FF and get prompted with the LoginDialog. You will not get the  same result in IE. There, you won't see anything happen, but in the console during debugging you will see the error "Aborted the Sign-In process to avoid sending password over insecure connection".

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ""> <html>   <head>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">     <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />     <!--The viewport meta tag is used to improve the presentation and behavior of the samples     on iOS devices-->     <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>     <title>Mobile Popup</title>     <link rel="stylesheet" type="text/css" href="" />     <link rel="stylesheet" type="text/css" href="" />  <style>       html, body { height: 100%; width: 100%; margin: 0; padding: 0; }       .esriScalebar{         padding: 20px 20px;       }       #map{         padding:0;       } </style>     <script type="text/javascript">var djConfig = {parseOnLoad: true};</script>     <script type="text/javascript" src=""></script> <script type="text/javascript"> dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require(""); dojo.require("esri.arcgis.utils"); dojo.require("esri.dijit.PopupMobile"); dojo.require("esri.IdentityManager");  var map,popup;  function init() { = "/EMAF/proxy/proxy.php";      //create a mobile popup     popup = new esri.dijit.PopupMobile(null, dojo.create("div"));      var mapDeferred = esri.arcgis.utils.createMap("3fc3f11514de4f9ab961dc9960d75388", "map", {                                                       mapOptions: {                                                           slider: true,                                                           nav:false,                                                           wrapAround180:true,                                                           infoWindow:popup                                                       }                                                   });     mapDeferred.addCallback(function(response) {                                 map =;                                 //resize the map when the browser resizes                                 dojo.connect(dijit.byId('map'), 'resize', map,map.resize);                                  map.setExtent(new esri.geometry.Extent({"xmin":-52909106.87506947,"ymin":935889.3196982983,"xmax":-40483503.557034515,"ymax":7451993.106951275,"spatialReference":{"wkid":102100}}));                             });     mapDeferred.addErrback(function(error) {                                console.log("Map creation failed: ", dojo.toJson(error));                            }); } dojo.addOnLoad(init); </script>   </head>   <body class="claro">     <div dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width: 100%; height: 100%; margin: 0;">       <div id="map" dojotype="dijit.layout.ContentPane" region="center" style="border:1px solid #000;padding:0;">       </div>     </div>   </body> </html>

Can someone let me know if there is something that I am missing in defining this? As far as I can tell from the documentation, the only thing necessary is that dojo.require line noted above, but perhaps there is some additional configuration settings necessary to work properly with IE that I missed.