<?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: Accessing a secured layer from C#  a console app in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/accessing-a-secured-layer-from-c-nbsp-a-console/m-p/163673#M8040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The referer passed into the generateToken call must be contained within the referer header passed in with each call. So if generate token is called with referer=acme.com all calls using it must have a HTTP Referer header that contains that string, for instance �??&lt;/SPAN&gt;&lt;A href="http://maps.acme.com/mypage.html�??"&gt;http://maps.acme.com/mypage.html�??&lt;/A&gt;&lt;SPAN&gt;. Browsers automatically set this to whatever page the call is coming from and this cannot be overridden.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the token is requested and used from C# then you can set whatever you want, and just make sure that the calls made to the API contain the same Referer string as was used to get the token. It could be a url, a session id, or whatever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 15:18:38 GMT</pubDate>
    <dc:creator>MikeMinami</dc:creator>
    <dc:date>2012-09-04T15:18:38Z</dc:date>
    <item>
      <title>Accessing a secured layer from C#  a console app</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-a-secured-layer-from-c-nbsp-a-console/m-p/163672#M8039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to access a secured service from a C# console application?&amp;nbsp; I am able to generate a token, however after reading the documentation the referer parameter is for webapps only.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[TABLE="class: detailTABLE"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[TD="class: detailTABLE"]client[/TD]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[TD="class: detailTABLE"]&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Description&lt;/SPAN&gt;&lt;SPAN&gt;: The client identification type for which the token is to be generated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;If the value is specified as referer, the referer parameter must be specified.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;The default and only value supported is referer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/TD]referer&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Description&lt;/SPAN&gt;&lt;SPAN&gt;: The base url of the webapp that will invoke the Portal API. This parameter must be specified if the value of the client parameter is referer &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Example&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;: referer=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver/mywebapp" rel="nofollow" target="_blank"&gt;http://myserver/mywebapp&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/TABLE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 14:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-a-secured-layer-from-c-nbsp-a-console/m-p/163672#M8039</guid>
      <dc:creator>JasonCleaver</dc:creator>
      <dc:date>2012-09-04T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a secured layer from C#  a console app</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-a-secured-layer-from-c-nbsp-a-console/m-p/163673#M8040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The referer passed into the generateToken call must be contained within the referer header passed in with each call. So if generate token is called with referer=acme.com all calls using it must have a HTTP Referer header that contains that string, for instance �??&lt;/SPAN&gt;&lt;A href="http://maps.acme.com/mypage.html�??"&gt;http://maps.acme.com/mypage.html�??&lt;/A&gt;&lt;SPAN&gt;. Browsers automatically set this to whatever page the call is coming from and this cannot be overridden.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the token is requested and used from C# then you can set whatever you want, and just make sure that the calls made to the API contain the same Referer string as was used to get the token. It could be a url, a session id, or whatever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-a-secured-layer-from-c-nbsp-a-console/m-p/163673#M8040</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2012-09-04T15:18:38Z</dc:date>
    </item>
  </channel>
</rss>

