<?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>question Re: NiFi - StandardOauth2AccessTokenProvider 1.23.2 Grant Type Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/378955#M243735</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107881"&gt;@kogent&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 16:54:21 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-11-13T16:54:21Z</dc:date>
    <item>
      <title>NiFi - StandardOauth2AccessTokenProvider 1.23.2 Grant Type Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/378951#M243732</link>
      <description>&lt;P&gt;I am attempting to use the NiFi StandardOauth2AccessTokenProvider 1.23.2 with the ConsumeIMAP processor in order to retrieve emails from Microsoft Outlook.&lt;/P&gt;&lt;P&gt;When I configure using a grant type of either Client Credentials or Refresh Token, the "Can acquire token" validation always fails with a 400 response code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grant-type-error.png" style="width: 798px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38923i57A888F00E77F9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="grant-type-error.png" alt="grant-type-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Upon examining the logs, the error reads:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR [Verify Controller Service Config Thread-1] o.a.n.o.StandardOauth2AccessTokenProvider StandardOauth2AccessTokenProvider[id=ba2358f5-018b-1000-e706-d1406dd00474] OAuth2 access token request failed [HTTP 400], response:
{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'grant_type'. Trace ID: 42b51bc0-3865-441e-abb2-200be69b6a00 Correlation ID: 1d0d67de-c1c3-4f0c-9f82-528b027ba18b Timestamp: 2023-11-13 14:41:12Z","error_codes":[900144],"timestamp":"2023-11-13 14:41:12Z","trace_id":"42b51bc0-3865-441e-abb2-200be69b6a00","correlation_id":"1d0d67de-c1c3-4f0c-9f82-528b027ba18b","error_uri":"https://login.microsoftonline.com/error?code=900144"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It would seem that the request is not setting the Grant Type correctly. I am able to create the request for a token outside of NiFi just fine when setting grant_type to client_credentials or refresh_token.&lt;/P&gt;&lt;P&gt;Is it possible to get this working or is this just a bug with this particular controller service?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 15:10:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/378951#M243732</guid>
      <dc:creator>kogent</dc:creator>
      <dc:date>2023-11-13T15:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - StandardOauth2AccessTokenProvider 1.23.2 Grant Type Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/378955#M243735</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107881"&gt;@kogent&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 16:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/378955#M243735</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-11-13T16:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - StandardOauth2AccessTokenProvider 1.23.2 Grant Type Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/380973#M244198</link>
      <description>&lt;P&gt;Something similar has been raised with the Nifi developers some months ago for 1.20.0 (&lt;A class="issue-link" href="https://issues.apache.org/jira/browse/NIFI-11579" target="_blank" rel="13537141 noopener"&gt;NIFI-11579&lt;/A&gt;) but no response so far. I've also only had this occur with 1.23.2 but using Basic Auth and Client Credentials&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 00:36:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-StandardOauth2AccessTokenProvider-1-23-2-Grant-Type/m-p/380973#M244198</guid>
      <dc:creator>GBC</dc:creator>
      <dc:date>2023-12-19T00:36:25Z</dc:date>
    </item>
  </channel>
</rss>

