<?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 How to use generateToken endpoint properly? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-use-generatetoken-endpoint-properly/m-p/337706#M1641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to generate token for my client.&lt;/P&gt;&lt;P&gt;My /rest/info edpoint returns me json like:&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;{"currentVersion":10.61,"fullVersion":"10.6.1.227","owningSystemUrl":"https://www.arcgis.com","owningTenant":"xxxxxx","authInfo":{"isTokenBasedSecurity":true,"tokenServicesUrl":"https://www.arcgis.com/sharing/generateToken"}}&lt;/PRE&gt;&lt;P&gt;If I try to use&amp;nbsp;&lt;STRONG&gt;tokenServicesUrl&lt;/STRONG&gt; as an endpoint for generating token then I get error "Invalid username or password" even when my username and password are correct.&lt;/P&gt;&lt;P&gt;curl -X POST \&lt;BR /&gt;&amp;nbsp;https://www.arcgis.com/sharing/generateToken \&lt;BR /&gt;&amp;nbsp;-F f=json \&lt;BR /&gt;&amp;nbsp;-F username=$USERNAME\&lt;BR /&gt;&amp;nbsp;-F password=$PASSWORD&lt;BR /&gt;&amp;nbsp;-F client=requestip \&lt;BR /&gt;&amp;nbsp;-F expiration=21600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried change param client and referer, it doesn't help.&lt;/P&gt;&lt;P&gt;Could you help me to solve this issue if it is possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2019 14:48:04 GMT</pubDate>
    <dc:creator>AgencyDeveloper</dc:creator>
    <dc:date>2019-03-07T14:48:04Z</dc:date>
    <item>
      <title>How to use generateToken endpoint properly?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-use-generatetoken-endpoint-properly/m-p/337706#M1641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to generate token for my client.&lt;/P&gt;&lt;P&gt;My /rest/info edpoint returns me json like:&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;{"currentVersion":10.61,"fullVersion":"10.6.1.227","owningSystemUrl":"https://www.arcgis.com","owningTenant":"xxxxxx","authInfo":{"isTokenBasedSecurity":true,"tokenServicesUrl":"https://www.arcgis.com/sharing/generateToken"}}&lt;/PRE&gt;&lt;P&gt;If I try to use&amp;nbsp;&lt;STRONG&gt;tokenServicesUrl&lt;/STRONG&gt; as an endpoint for generating token then I get error "Invalid username or password" even when my username and password are correct.&lt;/P&gt;&lt;P&gt;curl -X POST \&lt;BR /&gt;&amp;nbsp;https://www.arcgis.com/sharing/generateToken \&lt;BR /&gt;&amp;nbsp;-F f=json \&lt;BR /&gt;&amp;nbsp;-F username=$USERNAME\&lt;BR /&gt;&amp;nbsp;-F password=$PASSWORD&lt;BR /&gt;&amp;nbsp;-F client=requestip \&lt;BR /&gt;&amp;nbsp;-F expiration=21600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried change param client and referer, it doesn't help.&lt;/P&gt;&lt;P&gt;Could you help me to solve this issue if it is possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-use-generatetoken-endpoint-properly/m-p/337706#M1641</guid>
      <dc:creator>AgencyDeveloper</dc:creator>
      <dc:date>2019-03-07T14:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use generateToken endpoint properly?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-use-generatetoken-endpoint-properly/m-p/337707#M1642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found answer -&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/176923#comment-607851" title="https://community.esri.com/thread/176923#comment-607851"&gt;https://community.esri.com/thread/176923#comment-607851&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;My question is a complete duplicate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-use-generatetoken-endpoint-properly/m-p/337707#M1642</guid>
      <dc:creator>AgencyDeveloper</dc:creator>
      <dc:date>2019-03-07T15:15:07Z</dc:date>
    </item>
  </channel>
</rss>

