<?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: HTTP Referrer Token not working for secured services in Server 10.1SP1 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574400#M22152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that you are trying to use tokens in a manner that they were not designed to accommodate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/33948-Specifying-token-for-map-service-gets-redirected-to-login-page?highlight=referer" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/33948-Specifying-token-for-map-service-gets-redirected-to-login-page?highlight=referer&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/66158-Accessing-a-secured-layer-from-C-a-console-app?highlight=referer" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/66158-Accessing-a-secured-layer-from-C-a-console-app?highlight=referer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By that I mean that they are designed to be private and you are trying to use them in a public/protected manner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is that when someone uses the token the referer must match.&amp;nbsp; It appears that that is not possible for you because you have no control over the software used by others whom you have shared the token with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative is to develop your own proxy website which issues it own tokens and when a valid request comes it in replaces your token with an ESRI token.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2013 22:44:40 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-02-11T22:44:40Z</dc:date>
    <item>
      <title>HTTP Referrer Token not working for secured services in Server 10.1SP1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574397#M22149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;So I have tried to generate a token at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;:6080/arcgis/admin/generateToken, using the HTTP Referrer parameter, passing it the REST endpoint &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;:6080/arcgis/rest/services/&amp;lt;myfolder&amp;gt;/&amp;lt;myservice&amp;gt;/MapServer and setting the Expiration field to 30.&amp;nbsp; This REST endpoint is only accessible with the same credentials I used when generating the token.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Immediately after getting the token, I tried to test my token by using a web browser and entering &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;:6080/arcgis/rest/services/&amp;lt;myfolder&amp;gt;/&amp;lt;myservice&amp;gt;/MapServer?f=json&amp;amp;token=&amp;lt;mytoken&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The response I get back is {"error":{"code":498,"message":"Invalid Token","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I was able to get this to work using the Request IP parameter when generating the token.&amp;nbsp; The problem is I would like other folks to access my service with the token.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574397#M22149</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2013-02-08T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Referrer Token not working for secured services in Server 10.1SP1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574398#M22150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the client IP address when generating the token?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that the intent of ESRI was to make using tokens more secure.&amp;nbsp; The issue is that, in general, it isn't possible to get valid client IP addresses.&amp;nbsp; NAT is an issue as well as the fact that any request can put whatever information they want in this.&amp;nbsp; In fact, this is a well known trick.&amp;nbsp; For example, if you want to get answers from Experts Exchange then you say that you are Google searching the site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I do is to not expose tokens to clients but rather put all of this behind our own web application.&amp;nbsp; Dave Bouwman gave a great presentation on security at the Developer Summit several years ago where they developed a solution for the Department Of Homeland Security.&amp;nbsp; If you can find that then I suggest to read it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 19:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574398#M22150</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-08T19:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Referrer Token not working for secured services in Server 10.1SP1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574399#M22151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, so the method of using the client IP to generate the token and then only the client with that IP can use the token to access secured services worked.&amp;nbsp; However, this isn't an ideal solution if you say want to share the token with others, which is why I'd like to use the HTTP Referrer parameter, but I couldn't get it to work.&amp;nbsp; I was hoping to embed the token in a KML network link (pointing to generateKML on a feature layer) on a Google Earth Enterprise server so people that authenticate to our globe can access the network link (which accesses secure services).&amp;nbsp; Does that make sense?&amp;nbsp; Is there any known problem with the HTTP Referrer parameter for generating tokens?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 13:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574399#M22151</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2013-02-11T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Referrer Token not working for secured services in Server 10.1SP1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574400#M22152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that you are trying to use tokens in a manner that they were not designed to accommodate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/33948-Specifying-token-for-map-service-gets-redirected-to-login-page?highlight=referer" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/33948-Specifying-token-for-map-service-gets-redirected-to-login-page?highlight=referer&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/66158-Accessing-a-secured-layer-from-C-a-console-app?highlight=referer" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/66158-Accessing-a-secured-layer-from-C-a-console-app?highlight=referer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By that I mean that they are designed to be private and you are trying to use them in a public/protected manner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is that when someone uses the token the referer must match.&amp;nbsp; It appears that that is not possible for you because you have no control over the software used by others whom you have shared the token with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative is to develop your own proxy website which issues it own tokens and when a valid request comes it in replaces your token with an ESRI token.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 22:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/http-referrer-token-not-working-for-secured/m-p/574400#M22152</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-11T22:44:40Z</dc:date>
    </item>
  </channel>
</rss>

