<?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: token in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38370#M1385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #f92672; background-color: #373737; font-weight: bold;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;={&lt;/P&gt;&lt;P&gt;&amp;nbsp; username:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; password:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; client:&lt;SPAN style="color: #d69d85;"&gt;"referer"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ip:&lt;SPAN style="color: #d69d85;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; referer:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;+window.location.host+&lt;SPAN style="color: #d69d85;"&gt;'/'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; expiration:&lt;SPAN style="color: #b5cea8;"&gt;60&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; f:&lt;SPAN style="color: #d69d85;"&gt;"pjson"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d69d85;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp; $.ajax({&lt;/P&gt;&lt;P&gt;&amp;nbsp; type:&lt;SPAN style="color: #d69d85;"&gt;"post"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; url:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Fadmin%2FgenerateToken" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/admin/generateToken&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data:&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cache:&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; dataType:&lt;SPAN style="color: #d69d85;"&gt;"json"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; crossDomain: &lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ContentType:&lt;SPAN style="color: #d69d85;"&gt;'application/x-www-form-urlencoded'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #78bea6;"&gt;success&lt;/SPAN&gt;:&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; document.cookie=&lt;SPAN style="color: #d69d85;"&gt;"token="&lt;/SPAN&gt;+&lt;SPAN style="color: #78bea6;"&gt;escape&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;.token);&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #78bea6;"&gt;error&lt;/SPAN&gt;:&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #d69d85;"&gt;"error"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f92672; background-color: #373737; font-weight: bold;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; -------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;above,&amp;nbsp; this is my script to generate token, but in my broser,it's display &lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/161026_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;,&lt;/P&gt;&lt;P&gt;at the same times,i use it to generate token of Portal for ArcGIS&amp;nbsp; is correct&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp; can you help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Dec 2015 18:49:34 GMT</pubDate>
    <dc:creator>zhongrenGu</dc:creator>
    <dc:date>2015-12-26T18:49:34Z</dc:date>
    <item>
      <title>token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38368#M1383</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;BR /&gt;I am trying to use token based authentication for services on ArcGIS server. I think short duration token is good for the user that consume service on website as this is going to be on public IP and open to all. Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be entered in HTTP referer: text box ? is thais map service URL ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default setting in ArcGIS server is 60 min for short and 1 day for long duration tokens. If i generate token using ArcGIS server (&lt;A href="http://domain:6080/arcgis/admin/generateToken"&gt;http://domain:6080/arcgis/admin/generateToken&lt;/A&gt;), it asks again to enter expiration in minutes instead of asking short or long duration, why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i enter 30 min for token, it expires after 30min. How the public user can access this service over internet when token is expired ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 04:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38368#M1383</guid>
      <dc:creator>jayasudha</dc:creator>
      <dc:date>2015-10-20T04:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38369#M1384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will not answer your questions completely, but should make things more clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="table" style="border: 1px solid #c2c4ba; font-size: 12.16px; margin-left: 15px; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH class="th" colspan="1" rowspan="1" style="font-weight: bold; border: 1px solid #c2c4ba; padding: 5px; background: #e2e2e2;"&gt;&lt;P style="margin-left: 10px;"&gt;Parameter&lt;/P&gt;&lt;/TH&gt;&lt;TH class="th" colspan="1" rowspan="1" style="font-weight: bold; border: 1px solid #c2c4ba; padding: 5px; background: #e2e2e2;"&gt;&lt;P style="margin-left: 10px;"&gt;Description&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;username&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The name of an administrative account for the site.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;password&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The credentials of the administrative account.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;client&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The client IP or HTTP Referer to which the generated token will be bound.&lt;/P&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;Values: &lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;referer | ip | requestip&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the value is referer, the referer parameter must be specified.&lt;/LI&gt;&lt;LI&gt;If the value is ip, the ip parameter must be specified.&lt;/LI&gt;&lt;LI&gt;If the value is requestip, the IP address from where the request originated is used.&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;referer&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The base URL of the web application that will invoke the Administrator API. This parameter must be specified if the value of client parameter is referer.&lt;/P&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;Example: &lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;SPAN&gt;referer=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmyserver%2Fmywebapp" rel="nofollow" target="_blank"&gt;http://myserver/mywebapp&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;ip&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The IP address of the machine that will invoke the Administrator API. This parameter must be specified if the value of the client parameter is ip.&lt;/P&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;Example: ##.##.###.###&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;expiration&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The time in minutes for which the token must be valid.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;SPAN class="usertext" style="font-family: 'Courier New', Courier, monospace;"&gt;f&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border: 1px solid #c2c4ba; padding: 2px 5px 0;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;The response format. The default response format is html.&lt;/P&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; padding-bottom: 2px; margin-left: 10px;"&gt;Values: html | json&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the API Reference from the Generate Token page:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;STRONG&gt;&amp;lt;your_server_machine_name&amp;gt;&lt;/STRONG&gt;:6080/arcgis/admin/www/doc/index.html#/Generate_Token/02w00000005p000000/&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richardson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38369#M1384</guid>
      <dc:creator>RichardsonAluvilayil2</dc:creator>
      <dc:date>2015-10-20T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38370#M1385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #f92672; background-color: #373737; font-weight: bold;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;={&lt;/P&gt;&lt;P&gt;&amp;nbsp; username:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; password:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; client:&lt;SPAN style="color: #d69d85;"&gt;"referer"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ip:&lt;SPAN style="color: #d69d85;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; referer:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;+window.location.host+&lt;SPAN style="color: #d69d85;"&gt;'/'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; expiration:&lt;SPAN style="color: #b5cea8;"&gt;60&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; f:&lt;SPAN style="color: #d69d85;"&gt;"pjson"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d69d85;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp; $.ajax({&lt;/P&gt;&lt;P&gt;&amp;nbsp; type:&lt;SPAN style="color: #d69d85;"&gt;"post"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; url:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Fadmin%2FgenerateToken" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/admin/generateToken&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data:&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cache:&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; dataType:&lt;SPAN style="color: #d69d85;"&gt;"json"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; crossDomain: &lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ContentType:&lt;SPAN style="color: #d69d85;"&gt;'application/x-www-form-urlencoded'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #78bea6;"&gt;success&lt;/SPAN&gt;:&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; document.cookie=&lt;SPAN style="color: #d69d85;"&gt;"token="&lt;/SPAN&gt;+&lt;SPAN style="color: #78bea6;"&gt;escape&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;.token);&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #78bea6;"&gt;error&lt;/SPAN&gt;:&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #d69d85;"&gt;"error"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f92672; background-color: #373737; font-weight: bold;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; -------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;above,&amp;nbsp; this is my script to generate token, but in my broser,it's display &lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/161026_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;,&lt;/P&gt;&lt;P&gt;at the same times,i use it to generate token of Portal for ArcGIS&amp;nbsp; is correct&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp; can you help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Dec 2015 18:49:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38370#M1385</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-12-26T18:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38371#M1386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1、used proxy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #f92672; background-color: #373737; font-weight: bold;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;={&lt;/P&gt;&lt;P&gt;&amp;nbsp; username:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; password:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; client:&lt;SPAN style="color: #d69d85;"&gt;"referer"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ip:&lt;SPAN style="color: #d69d85;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; referer:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;+window.location.host+&lt;SPAN style="color: #d69d85;"&gt;'/'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; expiration:&lt;SPAN style="color: #b5cea8;"&gt;60&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; f:&lt;SPAN style="color: #d69d85;"&gt;"pjson"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d69d85;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp; $.ajax({&lt;/P&gt;&lt;P&gt;&amp;nbsp; type:&lt;SPAN style="color: #d69d85;"&gt;"post"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; url:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;"App/proxy/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Fadmin%2FgenerateToken" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/admin/generateToken&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; data:&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; cache:&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; dataType:&lt;SPAN style="color: #d69d85;"&gt;"json"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; crossDomain: &lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ContentType:&lt;SPAN style="color: #d69d85;"&gt;'application/x-www-form-urlencoded'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #78bea6;"&gt;success&lt;/SPAN&gt;:&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; document.cookie=&lt;SPAN style="color: #d69d85;"&gt;"token="&lt;/SPAN&gt;+&lt;SPAN style="color: #78bea6;"&gt;escape&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;.token);&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #78bea6;"&gt;error&lt;/SPAN&gt;:&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #d69d85;"&gt;"error"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f92672; font-weight: bold; background-color: #373737;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="background-color: #373737;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2、jsonp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #569cd6;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;={&lt;/P&gt;&lt;P&gt;&amp;nbsp; username:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; password:&lt;SPAN style="color: #d69d85;"&gt;'arcgis'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; client:&lt;SPAN style="color: #d69d85;"&gt;"referer"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ip:&lt;SPAN style="color: #d69d85;"&gt;""&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; referer:&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;+window.location.host+&lt;SPAN style="color: #d69d85;"&gt;'/'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; expiration:&lt;SPAN style="color: #b5cea8;"&gt;60&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; f:&lt;SPAN style="color: #d69d85;"&gt;"pjson"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d69d85;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;$.get(&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Fadmin%2FgenerateToken%3Fcallback%3D" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/admin/generateToken?callback=&lt;/A&gt;&lt;SPAN&gt;?'&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;SPAN style="color: #fda5ff;"&gt;params&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;){&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.&lt;SPAN style="color: #78bea6;"&gt;log&lt;/SPAN&gt;(&lt;SPAN style="color: #fdc267;"&gt;data&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;},&lt;SPAN style="color: #d69d85;"&gt;'jsonp'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console result:&amp;nbsp; it has no token&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/161142_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Dec 2015 19:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38371#M1386</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-12-26T19:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38372#M1387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i solved,&lt;A href="http://server.arcgis.com/zh-cn/server/latest/administer/linux/acquiring-arcgis-tokens.htm" title="http://server.arcgis.com/zh-cn/server/latest/administer/linux/acquiring-arcgis-tokens.htm"&gt;获取 ArcGIS 令牌—文档（10.3 和 10.3.1） | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Dec 2015 06:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token/m-p/38372#M1387</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2015-12-27T06:10:49Z</dc:date>
    </item>
  </channel>
</rss>

