<?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: ArcGIS Server tokens not working in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417885#M16219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cam across this &lt;A _jive_internal="true" href="https://community.esri.com/thread/88886"&gt;thread&lt;/A&gt;. I haven't tested it yet but my web adapters all use a name other than "arcgis" so I'm thinking it's my problem. I'm about to test. I'll let you know the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the second url you show, /admin/generatetoken/, is to the admin console as opposed to the regular arcgis server front end. I don't think this console is accessible from outside of the server that hosts it, not sure about this though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 22:06:54 GMT</pubDate>
    <dc:creator>DrewDowling</dc:creator>
    <dc:date>2015-04-07T22:06:54Z</dc:date>
    <item>
      <title>ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417880#M16214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ArcGIS Server 10.2.2 on Linux.&lt;/P&gt;&lt;P&gt;When I manually request a token from:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://local_machine_name:6080/arcgis/tokens/" rel="nofollow" target="_blank"&gt;https://local_machine_name:6080/arcgis/tokens/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works fine. When I manually request a token from (through web server):&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens/" rel="nofollow" target="_blank"&gt;https://webserver_domain/arcgis/tokens/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It doesn't work. I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invalid request&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Usage: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens?request=gettoken&amp;amp;username=username&amp;amp;password=password&amp;amp;" rel="nofollow" target="_blank"&gt;https://webserver_domain/arcgis/tokens?request=gettoken&amp;amp;username=username&amp;amp;password=password&amp;amp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Usage: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens/generateToken?username=username&amp;amp;password=password&amp;amp;" rel="nofollow" target="_blank"&gt;https://webserver_domain/arcgis/tokens/generateToken?username=username&amp;amp;password=password&amp;amp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Usage: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens/gettoken.html" rel="nofollow" target="_blank"&gt;https://webserver_domain/arcgis/tokens/gettoken.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I request manually with this URL (note the 'admin'), it works fine (this is through the web server):&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/admin/generatetoken/" rel="nofollow" target="_blank"&gt;https://webserver_domain/arcgis/admin/generatetoken/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it seems like through the REST endpoint, the 'post' is getting mangled between the web server and the GIS server?&lt;/P&gt;&lt;P&gt;Then, through the 'admin' endpoint, the 'post' works fine.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question.... Why are there two ways to get a token? Is one method preferable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 22:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417880#M16214</guid>
      <dc:creator>DonaldBrown</dc:creator>
      <dc:date>2014-12-12T22:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417881#M16215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quoting the &lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_secureservices.html"&gt;JavaScript API documentation&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The request to the token service must be made over HTTPS and all subsequent requests that use the token also need to be made over HTTPS if required by the resource.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ArcGIS Server documentation also explains how to disable the insecure configuration that permits HTTP requests in:&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/0155/01550000069v000000.htm"&gt;Securing your ArcGIS Server site » Configuring ArcGIS Server to be secure » Disabling token acquisition through HTTP GET requests&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2014 21:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417881#M16215</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-12-13T21:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417882#M16216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information. I think it's a good ideas to disable the 'get' token requests. I will probably implement that.&lt;/P&gt;&lt;P&gt;However, that doesn't solve my problem of getting the 'post' to work through the REST endpoint. I edited my original post to be more clear. I am using https for all requests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 16:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417882#M16216</guid>
      <dc:creator>DonaldBrown</dc:creator>
      <dc:date>2014-12-14T16:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417883#M16217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get a solution to this. I've started having the same problem on a new environment I am building. token requests fail using a web adapter but work fine connecting to directly to the web server. I have set up everything to use https. and I'm not getting any errors with logging in and displaying map services, only with token generation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 21:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417883#M16217</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2015-04-07T21:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417884#M16218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, I haven't been able to get this to work. So, the questions remain:&lt;/P&gt;&lt;P&gt;1) Why are there two places to get a token?:&lt;/P&gt;&lt;P&gt;&lt;A href="https://MyDomain/arcgis/tokens/" title="https://MyDomain/arcgis/tokens/"&gt;https://MyDomain/arcgis/tokens/&lt;/A&gt; &lt;A href="https://webserver_domain/arcgis/tokens/" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank" title="https://webserver_domain/arcgis/tokens/"&gt;https://webserver_domain/arcgis/tokens/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://MyDomain/arcgis/admin/generatetoken" title="https://MyDomain/arcgis/admin/generatetoken"&gt;https://MyDomain/arcgis/admin/generatetoken&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Why does the first one NOT work (with the above error messages), while the second URL works fine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 21:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417884#M16218</guid>
      <dc:creator>DonaldBrown</dc:creator>
      <dc:date>2015-04-07T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417885#M16219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cam across this &lt;A _jive_internal="true" href="https://community.esri.com/thread/88886"&gt;thread&lt;/A&gt;. I haven't tested it yet but my web adapters all use a name other than "arcgis" so I'm thinking it's my problem. I'm about to test. I'll let you know the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the second url you show, /admin/generatetoken/, is to the admin console as opposed to the regular arcgis server front end. I don't think this console is accessible from outside of the server that hosts it, not sure about this though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 22:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417885#M16219</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2015-04-07T22:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417886#M16220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't use the Web Adapter, so I have a different problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, /admin/generatetoken/ is available outside the Server network if you want it to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 23:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417886#M16220</guid>
      <dc:creator>DonaldBrown</dc:creator>
      <dc:date>2015-04-07T23:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417887#M16221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get this to work? We are having the exact same issue. We are using an F5, no web adapter, and 3 clustered arcgis servers running 10.4. Generate token works on the local host. We just upgraded to 10.4.1 (have not been able to test if this made any difference not that we upgrade thinking it would we were having a different issue and needed to upgrade to fix it). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 13:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417887#M16221</guid>
      <dc:creator>ElizabethNolan</dc:creator>
      <dc:date>2016-07-13T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417888#M16222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For 10.2.2 we did not have this issue.&amp;nbsp; With 10.3.1, we got this error message when attempting to generate a token with HTTP Referer and Expiration filled in when manually requesting token from: &lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;A class="jive-link-external-small" href="https://local_machine_name:6080/arcgis/tokens/" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000; text-decoration: underline;" target="_blank"&gt;https://local_machine_name:6080/arcgis/tokens/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Invalid request&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Usage: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens?request=gettoken&amp;amp;username=username&amp;amp;password=password&amp;amp;" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;https://webserver_domain/arcgis/tokens?request=gettoken&amp;amp;username=username&amp;amp;password=password&amp;amp;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Usage: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens/generateToken?username=username&amp;amp;password=password&amp;amp;" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;https://webserver_domain/arcgis/tokens/generateToken?username=username&amp;amp;password=password&amp;amp;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Usage: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://webserver_domain/arcgis/tokens/gettoken.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;https://webserver_domain/arcgis/tokens/gettoken.html&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;ESRI support said: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;Credentials are needed in 10.3.1 to generate the token.&amp;nbsp; The id and pw should be your p&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;rimary site administrator account.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;Also, in GeoEvent Processor - Site &amp;gt; Data Stores, when trying to register your new token, you may need to provide the URL: in FQDN format.&amp;nbsp; Note:&amp;nbsp; We only provide the machine name without the domain and it worked fine.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;And as others have said ESRI support also said this error message can be due to webadapter issue.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 22:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417888#M16222</guid>
      <dc:creator>DianeHarshbarger</dc:creator>
      <dc:date>2016-08-09T22:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server tokens not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417889#M16223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this issue by setting the correct Content-Type in den HTTP Request Header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 08:00:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-tokens-not-working/m-p/417889#M16223</guid>
      <dc:creator>StefanUseldinger</dc:creator>
      <dc:date>2020-05-28T08:00:22Z</dc:date>
    </item>
  </channel>
</rss>

