<?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: grant_type not supported for REST POST in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1994363#M11479</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;any solution to this? We are facing EXACTLY the same problem.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 09:29:28 GMT</pubDate>
    <dc:creator>viliam_vacula</dc:creator>
    <dc:date>2022-10-19T09:29:28Z</dc:date>
    <item>
      <title>grant_type not supported for REST POST</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1844780#M9642</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I'm working with Qlik&amp;nbsp; Sense on connecting a Learning Management System with Qlik to retrieve learner data. So far, so good. But the connection is OAuth token based, which requires me to create and send a new token every time.&lt;/P&gt;&lt;P&gt;I found out how to, theoretically, POST my credentials for obtaining a new token and later use the token for my GET requests in creating different connections.&lt;/P&gt;&lt;P&gt;So I set up a new connection, added my request URL, set the method to POST, added my request body and set the content-type of the header to&amp;nbsp;&lt;EM&gt;application/x-www-form-urlencoded&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, after adding all my credentials and needed information to request body of the POST request, it shows me&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"HTTP protocol error 400 (Bad Request): {"error":"unsupported_grant_type","error_description":"Grant type not supported"}"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;all the time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried sending the same request via Postman and got the wished for outcome, the Token. But I'm almost losing my mind as I can't figure out what else I need to set up or what I'm missing here. I tried out different formats in sending the body as well, but got "grant_type not specified" before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my structure of the body request:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="request body.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63871i12CE4C774F363285/image-size/medium?v=v2&amp;amp;px=400" role="button" title="request body.png" alt="request body.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the header I'm sending:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Query headers.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63870iCA810FF72B0579FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Query headers.png" alt="Query headers.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I very much&amp;nbsp;appreciate some help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 14:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1844780#M9642</guid>
      <dc:creator>mr_vince</dc:creator>
      <dc:date>2021-12-21T14:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: grant_type not supported for REST POST</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1994363#M11479</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;any solution to this? We are facing EXACTLY the same problem.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 09:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1994363#M11479</guid>
      <dc:creator>viliam_vacula</dc:creator>
      <dc:date>2022-10-19T09:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: grant_type not supported for REST POST</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1999915#M11545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can you share the solution on this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much appreciated.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 06:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/1999915#M11545</guid>
      <dc:creator>kp_varian</dc:creator>
      <dc:date>2022-11-03T06:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: grant_type not supported for REST POST</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/2000302#M11561</link>
      <description>&lt;P&gt;Unfortunately there was no way in making this happen in the Qlik connector. I ended up writing a python script with the credentials that is creating the token and saving the token on a given location as CSV. The python script runs every hour via an external service and I just pick up the token from the CSV and use it as a variable in my Qlik script&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 16:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/2000302#M11561</guid>
      <dc:creator>mr_vince</dc:creator>
      <dc:date>2022-11-03T16:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: grant_type not supported for REST POST</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/2140541#M13053</link>
      <description>&lt;P&gt;I was faced with the same challenge, got it to work with &amp;amp; as a separator.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;grant_type=password&amp;amp;username=APIXXXXXXX&amp;amp;password=12345&amp;amp;client_ID=customerAPI&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 22:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/grant-type-not-supported-for-REST-POST/m-p/2140541#M13053</guid>
      <dc:creator>Brian_Robertson</dc:creator>
      <dc:date>2023-11-22T22:24:07Z</dc:date>
    </item>
  </channel>
</rss>

