<?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: Public web application using secured hosted services where log in is not required in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595672#M55825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can simply add token at the end of the url when creating the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var layer = new esri.layers.ArcGISTiledMapServiceLayer("serviceUrl/token=your_token");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(layer);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 00:16:21 GMT</pubDate>
    <dc:creator>JianHuang</dc:creator>
    <dc:date>2013-05-14T00:16:21Z</dc:date>
    <item>
      <title>Public web application using secured hosted services where log in is not required.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595671#M55824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the best approach to make JavaScript web application where no log in is required that uses either ArcGIS Online secured hosted services or web map that is not shared?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words we want the JavaScript web application to be public but not the web map that is used in the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Solvi Thor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 15:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595671#M55824</guid>
      <dc:creator>SölviBergsveinsson</dc:creator>
      <dc:date>2013-05-13T15:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Public web application using secured hosted services where log in is not required</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595672#M55825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can simply add token at the end of the url when creating the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var layer = new esri.layers.ArcGISTiledMapServiceLayer("serviceUrl/token=your_token");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.addLayer(layer);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 00:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595672#M55825</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-05-14T00:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Public web application using secured hosted services where log in is not required</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595673#M55826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Solvi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might use proxy.ashx &amp;amp; proxy.config from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/Esri/map-and-app-gallery" rel="nofollow" target="_blank"&gt;Esri's map-and-app-gallery app on GitHub&lt;/A&gt;&lt;SPAN&gt; to automatically generate the token that Jian refers to. The map-and-app-gallery app presents a gallery of maps and apps that are shared with an ArcGIS.com group, and that group and the items can be private, so the proxy provides the authentication that the app needs without exposing the username and password to the browser. The proxy program works with a personal or organizational ArcGIS.com account.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drop the two files into your site, make the site an IIS .Net version 4 application, and change the applicationURL, username, and password items in proxy.config. Send your URLs to the proxy.ashx and the authentication will be handled for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 13:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595673#M55826</guid>
      <dc:creator>MikeTschudi</dc:creator>
      <dc:date>2013-05-14T13:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Public web application using secured hosted services where log in is not required</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595674#M55827</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;I will try this solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 08:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595674#M55827</guid>
      <dc:creator>SölviBergsveinsson</dc:creator>
      <dc:date>2013-05-15T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Public web application using secured hosted services where log in is not required</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595675#M55828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Send your URLs to the proxy.ashx and the authentication will be handled for you.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have an example of routing URLs to the proxy page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 20:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595675#M55828</guid>
      <dc:creator>JeffHaney</dc:creator>
      <dc:date>2013-06-26T20:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Public web application using secured hosted services where log in is not required</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595676#M55829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Something like this should work....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="http://sampleserver2.arcgisonline.com/arcgis/rest/services/" 
&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; matchAll="true" 
&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; token="jijdfihjd023r33yr837r37"&amp;gt;&amp;lt;/serverUrl&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ensure you have set up your proxy page correctly and use the following in your application/code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; esri.config.defaults.io.proxyUrl = "your_location_to_proxy_page/proxy.ashx";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.config.defaults.io.alwaysUseProxy = "true";

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/public-web-application-using-secured-hosted/m-p/595676#M55829</guid>
      <dc:creator>AndyBurns</dc:creator>
      <dc:date>2021-12-12T01:34:29Z</dc:date>
    </item>
  </channel>
</rss>

