<?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 We are trying to get an ArcGIS Javascript map running with secured services. We wish to manage the authentication separately in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391887#M36184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to get an ArcGIS Javascript map running with secured services.&lt;/P&gt;&lt;P&gt;We wish to manage the authentication separately, Once a user is logged into our system, they should not be presented with any authentication prompts.&lt;/P&gt;&lt;P&gt;With the Silverlight API we simply added a Token to the Layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having difficulties with the Javascript API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please refer to this URL for a sample : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/caseycupp/4f34s5ct/6/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/caseycupp/4f34s5ct/6/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Test 1 - Adding unsecured service : This works. I'm adding one layer to the map and the legend.&lt;/P&gt;&lt;P&gt;// Test 2 - Testing service with token : If I comment line 77 and uncomment line 79 to try to add a Secure Layer instantiated with a token to the legend. The layer is added to the map but not the legend&lt;/P&gt;&lt;P&gt;// Test 3 - Testing service with token : If I revert to Test 1(uncomment line 77 and comment 79) and then uncomment the section from 50-57 the credential object never gets added to the layer. (as you can see the alert fails)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 17:43:09 GMT</pubDate>
    <dc:creator>caseycupp</dc:creator>
    <dc:date>2014-11-25T17:43:09Z</dc:date>
    <item>
      <title>We are trying to get an ArcGIS Javascript map running with secured services. We wish to manage the authentication separately</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391887#M36184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to get an ArcGIS Javascript map running with secured services.&lt;/P&gt;&lt;P&gt;We wish to manage the authentication separately, Once a user is logged into our system, they should not be presented with any authentication prompts.&lt;/P&gt;&lt;P&gt;With the Silverlight API we simply added a Token to the Layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having difficulties with the Javascript API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please refer to this URL for a sample : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/caseycupp/4f34s5ct/6/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/caseycupp/4f34s5ct/6/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Test 1 - Adding unsecured service : This works. I'm adding one layer to the map and the legend.&lt;/P&gt;&lt;P&gt;// Test 2 - Testing service with token : If I comment line 77 and uncomment line 79 to try to add a Secure Layer instantiated with a token to the legend. The layer is added to the map but not the legend&lt;/P&gt;&lt;P&gt;// Test 3 - Testing service with token : If I revert to Test 1(uncomment line 77 and comment 79) and then uncomment the section from 50-57 the credential object never gets added to the layer. (as you can see the alert fails)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 17:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391887#M36184</guid>
      <dc:creator>caseycupp</dc:creator>
      <dc:date>2014-11-25T17:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: We are trying to get an ArcGIS Javascript map running with secured services. We wish to manage the authentication separately</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391888#M36185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of adding the logic to get a token to your javascript app you should setup and use the proxy pages provided in the following github repo.&amp;nbsp; This code takes care of generating a token if needed and appending it to the layers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;Esri/resource-proxy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 22:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391888#M36185</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2014-11-25T22:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: We are trying to get an ArcGIS Javascript map running with secured services. We wish to manage the authentication separately</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391889#M36186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Kelly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 19:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/we-are-trying-to-get-an-arcgis-javascript-map/m-p/391889#M36186</guid>
      <dc:creator>caseycupp</dc:creator>
      <dc:date>2014-11-26T19:26:54Z</dc:date>
    </item>
  </channel>
</rss>

