<?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 Problem with parameters for token generation in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problem-with-parameters-for-token-generation/m-p/1250074#M4350</link>
    <description>&lt;P&gt;For use of&amp;nbsp;ArcGIS REST securing service I need to add a token to its URL. There are some parameters that should be passed to the server to generate a token, it is explained here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" target="_self"&gt;https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, for&amp;nbsp;"&lt;SPAN&gt;IP address" case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;username=admin&amp;amp;password=test1234&amp;amp;client=&lt;STRONG&gt;requestip&lt;/STRONG&gt;&amp;amp;ip=&amp;amp;referer=&amp;amp;expiration=60&amp;amp;f=json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A token is really generated but it is wrong. Only when I use more short string such as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;username=admin&amp;amp;password=test1234&amp;amp;expiration=60&amp;amp;f=json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it returns a valid token. But it should be default case that is case of &lt;STRONG&gt;HTTP referer&lt;/STRONG&gt;. So I need to know why this way does not work. It works in previous versions of ArcGIS server, but does not work in the last one -&amp;nbsp;ARCGIS 10.9&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 20:04:11 GMT</pubDate>
    <dc:creator>ekleiman22</dc:creator>
    <dc:date>2023-01-20T20:04:11Z</dc:date>
    <item>
      <title>Problem with parameters for token generation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problem-with-parameters-for-token-generation/m-p/1250074#M4350</link>
      <description>&lt;P&gt;For use of&amp;nbsp;ArcGIS REST securing service I need to add a token to its URL. There are some parameters that should be passed to the server to generate a token, it is explained here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" target="_self"&gt;https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, for&amp;nbsp;"&lt;SPAN&gt;IP address" case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;username=admin&amp;amp;password=test1234&amp;amp;client=&lt;STRONG&gt;requestip&lt;/STRONG&gt;&amp;amp;ip=&amp;amp;referer=&amp;amp;expiration=60&amp;amp;f=json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A token is really generated but it is wrong. Only when I use more short string such as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;username=admin&amp;amp;password=test1234&amp;amp;expiration=60&amp;amp;f=json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it returns a valid token. But it should be default case that is case of &lt;STRONG&gt;HTTP referer&lt;/STRONG&gt;. So I need to know why this way does not work. It works in previous versions of ArcGIS server, but does not work in the last one -&amp;nbsp;ARCGIS 10.9&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 20:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/problem-with-parameters-for-token-generation/m-p/1250074#M4350</guid>
      <dc:creator>ekleiman22</dc:creator>
      <dc:date>2023-01-20T20:04:11Z</dc:date>
    </item>
  </channel>
</rss>

