<?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: Use Proxy page for selective pages in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444179#M41022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;did see those, but neither one answered my questions. I do not want to go in direction of tokens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 11:46:01 GMT</pubDate>
    <dc:creator>JatinPatel</dc:creator>
    <dc:date>2012-10-23T11:46:01Z</dc:date>
    <item>
      <title>Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444177#M41020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app that is currently configured to use proxy for all layers, using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;esri.config.defaults.io.alwaysUseProxy = true;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem with that is. although it secures my featurelayers, all the layers including basemaps are routed through it which makes it slow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to tell the app which layers to route though proxy and which not to instead of just setting "alwaysuseproxy" to be true or false universally?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 16:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444177#M41020</guid>
      <dc:creator>JatinPatel</dc:creator>
      <dc:date>2012-10-22T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444178#M41021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Recent thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/51456-Selectively-use-Proxy-page"&gt;http://forums.arcgis.com/threads/51456-Selectively-use-Proxy-page&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/search.php"&gt;http://forums.arcgis.com/search.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 09:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444178#M41021</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-23T09:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444179#M41022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;did see those, but neither one answered my questions. I do not want to go in direction of tokens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 11:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444179#M41022</guid>
      <dc:creator>JatinPatel</dc:creator>
      <dc:date>2012-10-23T11:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444180#M41023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a perfect use case for tokens. You don't have to manage the tokens.&amp;nbsp; You could use the proxy page to dynamically generate a token and append it when you create the feature layer.&amp;nbsp; I there some reason you don't wan to go the way of tokens?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 13:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444180#M41023</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2012-10-23T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444181#M41024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;did see those, but neither one answered my questions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Your question looks like a duplicate and avoiding creating duplicate threads, if possible, is helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 14:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444181#M41024</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-23T14:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444182#M41025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sounds like a perfect use case for tokens. You don't have to manage the tokens.&amp;nbsp; You could use the proxy page to dynamically generate a token and append it when you create the feature layer.&amp;nbsp; I there some reason you don't wan to go the way of tokens?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are currently using windows authentication to secure the services and that is why using proxy. Due to some reasons we cannot move away from WA. can we use WA and tokens both? Would it make sense?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:03:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444182#M41025</guid>
      <dc:creator>JatinPatel</dc:creator>
      <dc:date>2012-10-23T15:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444183#M41026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't worked with windows authentication, but I don't see why it wouldn't work.&amp;nbsp; As long as you pass valid credentials to the gis server, you should be able to return a valid token.&amp;nbsp; We went through a similar issue on our server. Originally, we were passing every request through the proxy and found that the application server was creating a bottle neck.&amp;nbsp; Instead, we opted to do a single token request when a user first opens the application.&amp;nbsp; You can set the token to expired after a certain amount of time -- we use 24 hours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is function we use for requesting the token:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
_getToken: function(onComplete){
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.xhrGet({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: "code/getToken.jsp?&amp;amp;ref=" + document.location.protocol + "%2F%2F" + document.location.hostname,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; handleAs: "text",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load: function(data){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var jsonData = dojo.fromJson(data);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onComplete(jsonData.token);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error: function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onComplete(error);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; },
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444183#M41026</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2021-12-11T19:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use Proxy page for selective pages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444184#M41027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me give it a shot..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 19:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-proxy-page-for-selective-pages/m-p/444184#M41027</guid>
      <dc:creator>JatinPatel</dc:creator>
      <dc:date>2012-10-23T19:24:30Z</dc:date>
    </item>
  </channel>
</rss>

