<?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 Question regarding how to submit authorization header for REST API generateToken request. in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-how-to-submit-authorization/m-p/682448#M3328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on acquiring a token from my Portal's generateToken endpoint (https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/arcgis/sharing/rest/generateToken).&amp;nbsp; In order to get the token I need to submit my POST request over HTTPS.&amp;nbsp; I've followed ESRI's online instructions for submitting the username and password in the body of the request and that works but I am wondering if it would be possible to put the creds in an authorization header instead.&amp;nbsp; The creds belong to a built in account.&amp;nbsp; I've tried the standard Basic Auth and X-ESRI-Authorization Basic headers.&amp;nbsp; Neither work.&amp;nbsp; A link to the online instructions I've been following is provided below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm"&gt;Generate Token—ArcGIS REST API | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2020 19:16:52 GMT</pubDate>
    <dc:creator>JamesMadden1</dc:creator>
    <dc:date>2020-07-10T19:16:52Z</dc:date>
    <item>
      <title>Question regarding how to submit authorization header for REST API generateToken request.</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-how-to-submit-authorization/m-p/682448#M3328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on acquiring a token from my Portal's generateToken endpoint (https://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/arcgis/sharing/rest/generateToken).&amp;nbsp; In order to get the token I need to submit my POST request over HTTPS.&amp;nbsp; I've followed ESRI's online instructions for submitting the username and password in the body of the request and that works but I am wondering if it would be possible to put the creds in an authorization header instead.&amp;nbsp; The creds belong to a built in account.&amp;nbsp; I've tried the standard Basic Auth and X-ESRI-Authorization Basic headers.&amp;nbsp; Neither work.&amp;nbsp; A link to the online instructions I've been following is provided below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm"&gt;Generate Token—ArcGIS REST API | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/question-regarding-how-to-submit-authorization/m-p/682448#M3328</guid>
      <dc:creator>JamesMadden1</dc:creator>
      <dc:date>2020-07-10T19:16:52Z</dc:date>
    </item>
  </channel>
</rss>

