<?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: Identity Manager in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557401#M51996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I add a few more things into my project.&amp;nbsp; Besides IdentityManager, it works best for me to use "esri/urlUtils", and "esri/ServerInfo" as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pathName = "myServer.mo.gov"&amp;nbsp; //the path to myserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix: pathName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl: "../../proxy/proxy.ashx"&amp;nbsp; &lt;SPAN style="line-height: 1.5;"&gt;//this is the path to where my proxy config file is located&lt;/SPAN&gt;&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;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var serverInfo = new ServerInfo();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.server = pathName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.tokenServiceUrl = pathName+"/arcgis/tokens/generateToken"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, if you are trying to run this as localhost (&lt;A href="http://127.0.0.1:8000/" title="http://127.0.0.1:8000/"&gt;http://127.0.0.1:8000) &lt;SPAN style="color: #303030;"&gt;I've never had that work.&amp;nbsp; It only works for me when I have a fully qualified domain as URL.&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 15:29:55 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2015-08-24T15:29:55Z</dc:date>
    <item>
      <title>Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557400#M51995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some trouble with the Identity manager.&amp;nbsp; In FF and Chrome things work great, but Internet Explorer is misbehaving... surprise surprise! The issue I am having is that the Identity Manager dialog to connect to secure services will only show up occasionally when the map loads. I have been checking the forums and some folks say I need to add https urls to my proxy config file.&amp;nbsp; Did that.&amp;nbsp; Still misbehaving... any other suggestions?&amp;nbsp; Is there are a way to build and initiate an identity manager on map load?&amp;nbsp; Simply adding in the right modules, i.e. (&lt;SPAN class="str" style="color: #dd1144;"&gt;IdentityManager, &lt;SPAN class="str" style="color: #dd1144;"&gt;esri/arcgis/utils,&lt;/SPAN&gt; Dialog...&lt;/SPAN&gt;) doesnt seem to do the trick like some of the docs mention.&amp;nbsp; The process is getting aborted occasionally as you see below in the image...&amp;nbsp; Any help would be very much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-08-24_10-23-11.jpg" class="image-1 jive-image" height="82" src="https://community.esri.com/legacyfs/online/123685_2015-08-24_10-23-11.jpg" style="height: 82px; width: 861.694915254237px;" width="862" /&gt;&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, 24 Aug 2015 14:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557400#M51995</guid>
      <dc:creator>JeffreySchmidt</dc:creator>
      <dc:date>2015-08-24T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557401#M51996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I add a few more things into my project.&amp;nbsp; Besides IdentityManager, it works best for me to use "esri/urlUtils", and "esri/ServerInfo" as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pathName = "myServer.mo.gov"&amp;nbsp; //the path to myserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix: pathName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl: "../../proxy/proxy.ashx"&amp;nbsp; &lt;SPAN style="line-height: 1.5;"&gt;//this is the path to where my proxy config file is located&lt;/SPAN&gt;&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;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var serverInfo = new ServerInfo();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.server = pathName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.tokenServiceUrl = pathName+"/arcgis/tokens/generateToken"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, if you are trying to run this as localhost (&lt;A href="http://127.0.0.1:8000/" title="http://127.0.0.1:8000/"&gt;http://127.0.0.1:8000) &lt;SPAN style="color: #303030;"&gt;I've never had that work.&amp;nbsp; It only works for me when I have a fully qualified domain as URL.&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557401#M51996</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-08-24T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557402#M51997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tracy, I will try these ideas out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 15:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557402#M51997</guid>
      <dc:creator>JeffreySchmidt</dc:creator>
      <dc:date>2015-08-24T15:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Manager</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557403#M51998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeffery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For many versions of IE (7,8,9) you'll need to run the entire app over https in order to avoid the 'Aborted the sign in process' error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;IE 7, 8 and 9 do not support CORS. So JSAPI cannot directly make request to the token service. It has to go through a proxy hosted on the same-origin as the application (identical protocol, hostname and port). So the app would communicate with proxy over HTTP and the proxy would communicate with the token service over HTTPS. This is okay for normal requests but not for requests that carry username and password. Hence the "Aborted" error message in IE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can force the app to reload over https only when the identity manager is needed by adding the following code to your app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.id.setProtocolErrorHandler(function() {&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("protocol");&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (window.confirm("Your browser is not CORS enabled. You need to redirect to HTTPS. Continue?")) {&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.location = window.location.href.replace(/^http:/i, "https:");&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identity-manager/m-p/557403#M51998</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-12T00:03:58Z</dc:date>
    </item>
  </channel>
</rss>

