<?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: REST Token service problem when using parameters in URL in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-token-service-problem-when-using-parameters/m-p/473343#M43896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got the solution from ESRI Support. Use IP address of client machine instead of the Http referrer to generate the token.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Sep 2010 14:25:26 GMT</pubDate>
    <dc:creator>ujjwalnarayan</dc:creator>
    <dc:date>2010-09-14T14:25:26Z</dc:date>
    <item>
      <title>REST Token service problem when using parameters in URL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-token-service-problem-when-using-parameters/m-p/473342#M43895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have Arcgis server 9.3.1 set up with SQL server authentication and token service enabled. When i access a map service with just token passed in the Url (http: //myserver/arcgis/rest/services?token=....), i get authenticated properly. For example, the following url works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://miggisarcgis/ArcGIS/rest/services?token=YGJrmVR4_q_dBeL2DgeEXGWOkpQultJZ2psX3By9jNI4GOr-i-LfUsuA-mc534vU3UPhgZuOyZrJoifyPSw1R-6Z9TwnIwiik8atV_GlajY"&gt;http://miggisarcgis/ArcGIS/rest/services?token=YGJrmVR4_q_dBeL2DgeEXGWOkpQultJZ2psX3By9jNI4GOr-i-LfUsuA-mc534vU3UPhgZuOyZrJoifyPSw1R-6Z9TwnIwiik8atV_GlajY&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When requesting html output explicitly via url parameter (http: //myserver/arcgis/rest/services?token=....&amp;amp;f=html), this also works without any problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://miggisarcgis/ArcGIS/rest/services?token=YGJrmVR4_q_dBeL2DgeEXGWOkpQultJZ2psX3By9jNI4GOr-i-LfUsuA-mc534vU3UPhgZuOyZrJoifyPSw1R-6Z9TwnIwiik8atV_GlajY.&amp;amp;f=html"&gt;http://miggisarcgis/ArcGIS/rest/services?token=YGJrmVR4_q_dBeL2DgeEXGWOkpQultJZ2psX3By9jNI4GOr-i-LfUsuA-mc534vU3UPhgZuOyZrJoifyPSw1R-6Z9TwnIwiik8atV_GlajY.&amp;amp;f=html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when i request output in json format (http: //myserver/arcgis/rest/services?token=....&amp;amp;f=json) , &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://miggisarcgis/ArcGIS/rest/services?token=YGJrmVR4_q_dBeL2DgeEXGWOkpQultJZ2psX3By9jNI4GOr-i-LfUsuA-mc534vU3UPhgZuOyZrJoifyPSw1R-6Z9TwnIwiik8atV_GlajY.&amp;amp;f=json"&gt;http://miggisarcgis/ArcGIS/rest/services?token=YGJrmVR4_q_dBeL2DgeEXGWOkpQultJZ2psX3By9jNI4GOr-i-LfUsuA-mc534vU3UPhgZuOyZrJoifyPSw1R-6Z9TwnIwiik8atV_GlajY.&amp;amp;f=json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":{"code":498,"message":"Invalid token","details":["Unauthorized access"]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug in ArcGIS Server 9.3.1 or i'm doing something wrong? I am trying everything on a fresh install of ArcGIS server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 13:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-token-service-problem-when-using-parameters/m-p/473342#M43895</guid>
      <dc:creator>ujjwalnarayan</dc:creator>
      <dc:date>2010-09-07T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: REST Token service problem when using parameters in URL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-token-service-problem-when-using-parameters/m-p/473343#M43896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got the solution from ESRI Support. Use IP address of client machine instead of the Http referrer to generate the token.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 14:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-token-service-problem-when-using-parameters/m-p/473343#M43896</guid>
      <dc:creator>ujjwalnarayan</dc:creator>
      <dc:date>2010-09-14T14:25:26Z</dc:date>
    </item>
  </channel>
</rss>

