<?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 Generate token giving unexpected result in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/generate-token-giving-unexpected-result/m-p/795636#M275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to generate a token via a java web app. It works on some servers, but on others I get a response that I don't expect (happens via the app and when posting directly in a browser:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false" title="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false"&gt;http://localhost:6080/arcgis/admin/generateToken?username=myuser&amp;amp;password=mypwd&amp;amp;f=json&amp;amp;client=requestip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false" style="color: #2989c5; text-decoration: none;" title="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false"&gt;https://localhost:6443/arcgis/admin/generateToken?username=myuser&amp;amp;password=mypwd&amp;amp;f=json&amp;amp;client=requestip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;{"ssl":{"supportsSSL":true,"sslPort":6443}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as opposed to what I expect:&lt;/P&gt;&lt;PRE style="color: #000000; font-weight: normal;"&gt;{"token":"U4rudliz0r6yQG2esK1Mcha8utQ-6XQVJG5iTHH8we2HHx1JR6MA52g3FYXuMVCX","expires":"1538503485453"}&lt;/PRE&gt;&lt;P&gt;The response doesn't indicate it's an error. So I'm a little confused.&lt;/P&gt;&lt;P&gt;Also, if, on the problem servers, I go to the UI for generating a token (&lt;A class="" href="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false" style="color: #2989c5; text-decoration: none;" title="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false"&gt;http://localhost:6080/arcgis/admin&lt;/A&gt;), it generates a token correctly.&lt;/P&gt;&lt;P&gt;Is there some sort of configuration in ArcServer that needs setting? I don't see anything blatantly different when I compare working vs non-working server configurations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2018 17:54:36 GMT</pubDate>
    <dc:creator>WilliamLanza</dc:creator>
    <dc:date>2018-10-02T17:54:36Z</dc:date>
    <item>
      <title>Generate token giving unexpected result</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/generate-token-giving-unexpected-result/m-p/795636#M275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to generate a token via a java web app. It works on some servers, but on others I get a response that I don't expect (happens via the app and when posting directly in a browser:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false" title="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false"&gt;http://localhost:6080/arcgis/admin/generateToken?username=myuser&amp;amp;password=mypwd&amp;amp;f=json&amp;amp;client=requestip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false" style="color: #2989c5; text-decoration: none;" title="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false"&gt;https://localhost:6443/arcgis/admin/generateToken?username=myuser&amp;amp;password=mypwd&amp;amp;f=json&amp;amp;client=requestip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;{"ssl":{"supportsSSL":true,"sslPort":6443}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as opposed to what I expect:&lt;/P&gt;&lt;PRE style="color: #000000; font-weight: normal;"&gt;{"token":"U4rudliz0r6yQG2esK1Mcha8utQ-6XQVJG5iTHH8we2HHx1JR6MA52g3FYXuMVCX","expires":"1538503485453"}&lt;/PRE&gt;&lt;P&gt;The response doesn't indicate it's an error. So I'm a little confused.&lt;/P&gt;&lt;P&gt;Also, if, on the problem servers, I go to the UI for generating a token (&lt;A class="" href="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false" style="color: #2989c5; text-decoration: none;" title="https://localhost:6443/arcgis/admin/generateToken?username=gisuser&amp;amp;password=gisuser&amp;amp;f=json&amp;amp;client=requestip&amp;amp;allSSL=false"&gt;http://localhost:6080/arcgis/admin&lt;/A&gt;), it generates a token correctly.&lt;/P&gt;&lt;P&gt;Is there some sort of configuration in ArcServer that needs setting? I don't see anything blatantly different when I compare working vs non-working server configurations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/generate-token-giving-unexpected-result/m-p/795636#M275</guid>
      <dc:creator>WilliamLanza</dc:creator>
      <dc:date>2018-10-02T17:54:36Z</dc:date>
    </item>
  </channel>
</rss>

