<?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 use security user to retrieve map service (Javascript) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-security-user-to-retrieve-map-service/m-p/479171#M44533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a javascript application that needs use security user&amp;nbsp; to retrieve map service. If I just run my application in VS. It works well. But if I publish my application to IIS and run it,I find it doesn't work well. Can anyone provide a code example in javascript to get all the mapservices which use security user. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get token URL:&lt;A href="http://qa-server12:80/arcgis/tokens?request=getToken&amp;amp;username=achievo.com\\barry.wei&amp;amp;password=666666&amp;amp;expiration=60" title="http://qa-server12:80/arcgis/tokens?request=getToken&amp;amp;username=achievo.com\\barry.wei&amp;amp;password=666666&amp;amp;expiration=60"&gt;http://myserver:port/arcgis/tokens?request=getToken&amp;amp;username=test&amp;amp;password=test&amp;amp;expiration=60&lt;/A&gt; &lt;/P&gt;&lt;P&gt;get services RUL:&lt;A href="https://qa-server12:443/arcgis/rest/services/?f=pjson&amp;amp;token=kqnRyoGfhpHqU1vUln7tRwoUWyaVaMfz1t34MbxOjfzFY5qSQlHRhWfKOoOJUtmg" title="https://qa-server12:443/arcgis/rest/services/?f=pjson&amp;amp;token=kqnRyoGfhpHqU1vUln7tRwoUWyaVaMfz1t34MbxOjfzFY5qSQlHRhWfKOoOJUtmg"&gt;http://myserver:port/arcgis/rest/services/?f=pjson&amp;amp;token=&lt;/A&gt;token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Run in VS and it works well.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="getFolder.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/25234_getFolder.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Publish to IIS.&amp;nbsp; it does not works well.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="other.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/25427_other.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why, can anyone help me? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 11:23:32 GMT</pubDate>
    <dc:creator>huapengwei</dc:creator>
    <dc:date>2014-10-28T11:23:32Z</dc:date>
    <item>
      <title>use security user to retrieve map service (Javascript)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-security-user-to-retrieve-map-service/m-p/479171#M44533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a javascript application that needs use security user&amp;nbsp; to retrieve map service. If I just run my application in VS. It works well. But if I publish my application to IIS and run it,I find it doesn't work well. Can anyone provide a code example in javascript to get all the mapservices which use security user. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get token URL:&lt;A href="http://qa-server12:80/arcgis/tokens?request=getToken&amp;amp;username=achievo.com\\barry.wei&amp;amp;password=666666&amp;amp;expiration=60" title="http://qa-server12:80/arcgis/tokens?request=getToken&amp;amp;username=achievo.com\\barry.wei&amp;amp;password=666666&amp;amp;expiration=60"&gt;http://myserver:port/arcgis/tokens?request=getToken&amp;amp;username=test&amp;amp;password=test&amp;amp;expiration=60&lt;/A&gt; &lt;/P&gt;&lt;P&gt;get services RUL:&lt;A href="https://qa-server12:443/arcgis/rest/services/?f=pjson&amp;amp;token=kqnRyoGfhpHqU1vUln7tRwoUWyaVaMfz1t34MbxOjfzFY5qSQlHRhWfKOoOJUtmg" title="https://qa-server12:443/arcgis/rest/services/?f=pjson&amp;amp;token=kqnRyoGfhpHqU1vUln7tRwoUWyaVaMfz1t34MbxOjfzFY5qSQlHRhWfKOoOJUtmg"&gt;http://myserver:port/arcgis/rest/services/?f=pjson&amp;amp;token=&lt;/A&gt;token&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Run in VS and it works well.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="getFolder.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/25234_getFolder.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Publish to IIS.&amp;nbsp; it does not works well.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="other.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/25427_other.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why, can anyone help me? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 11:23:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-security-user-to-retrieve-map-service/m-p/479171#M44533</guid>
      <dc:creator>huapengwei</dc:creator>
      <dc:date>2014-10-28T11:23:32Z</dc:date>
    </item>
  </channel>
</rss>

