<?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: Use InvokeHTTP response body in another InvokeHTTP in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375356#M242416</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you're using Apache NiFi and the token you're trying to capture with the &lt;/SPAN&gt;InvokeHTTP&lt;SPAN&gt; processor is too large to be stored as an attribute, you can follow the steps below to work around this limitation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep the token in the content of the FlowFile if it's returned by the InvokeHTTP processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use processors like ReplaceText to wrap the token in the header format you need. For instance, if you need the header to be Authorization: Bearer {token}, then you can configure a ReplaceText processor to replace the content (i.e., the token) to match this format.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 09:36:34 GMT</pubDate>
    <dc:creator>JamesMillere</dc:creator>
    <dc:date>2023-08-18T09:36:34Z</dc:date>
    <item>
      <title>Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375332#M242400</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;sorry for my silly question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a InvokeHTTP processor which returns plaintext access token in the response body, since it is larger than 256 bytes I cannot assign it to an attribute. I need to use the token in another InvokeHTTP as a header to retrieve data. Token is a plain text (not a json).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:01:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375332#M242400</guid>
      <dc:creator>leqlaz777</dc:creator>
      <dc:date>2023-08-17T14:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375337#M242404</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106557"&gt;@leqlaz777&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/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&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>Thu, 17 Aug 2023 17:10:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375337#M242404</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-08-17T17:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375341#M242408</link>
      <description>&lt;P&gt;How are you authenticating? Are you using OAuth2 token for example? If so see if you can take advantage of the "&lt;SPAN&gt;OAuth2 Access Token provider&lt;/SPAN&gt;" in the InvokeHttp processors where you set and configure your token provider as a service:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-oauth2-provider-nar/1.22.0/org.apache.nifi.oauth2.StandardOauth2AccessTokenProvider/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-oauth2-provider-nar/1.22.0/org.apache.nifi.oauth2.StandardOauth2AccessTokenProvider/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 18:22:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375341#M242408</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-08-17T18:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375343#M242409</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106557"&gt;@leqlaz777&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What version of NiFi are you using?&lt;BR /&gt;How large is your response body?&lt;BR /&gt;&lt;BR /&gt;I have no issues creating FlowFile Attributes with values larger then 256 bytes.&lt;BR /&gt;Can you share your processors being used and the configuration of them?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 19:00:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375343#M242409</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-17T19:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375346#M242411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not exactly oAuth2, I send &lt;STRONG&gt;Authorization: Bearer [API KEY] &lt;/STRONG&gt;header to /auth endpoint via POST request and get a JWT access token. Which then I have to use as an auth header to access resources.&lt;/P&gt;&lt;P&gt;In StandardOauth2AccessTokenProvider I am not able to use simple Bearer token in header.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 07:02:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375346#M242411</guid>
      <dc:creator>leqlaz777</dc:creator>
      <dc:date>2023-08-18T07:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375347#M242412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My version is 1.20.&lt;/P&gt;&lt;P&gt;It is a JWT token between 400-500 bytes.&lt;/P&gt;&lt;P&gt;I missed "&lt;SPAN class="table-cell"&gt;Response Body Attribute Size&lt;/SPAN&gt;" parameter, I can set arbitrary size to attribute. After changing it I am able to pass full length of my token.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 07:12:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375347#M242412</guid>
      <dc:creator>leqlaz777</dc:creator>
      <dc:date>2023-08-18T07:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use InvokeHTTP response body in another InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375356#M242416</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you're using Apache NiFi and the token you're trying to capture with the &lt;/SPAN&gt;InvokeHTTP&lt;SPAN&gt; processor is too large to be stored as an attribute, you can follow the steps below to work around this limitation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep the token in the content of the FlowFile if it's returned by the InvokeHTTP processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use processors like ReplaceText to wrap the token in the header format you need. For instance, if you need the header to be Authorization: Bearer {token}, then you can configure a ReplaceText processor to replace the content (i.e., the token) to match this format.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 09:36:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-InvokeHTTP-response-body-in-another-InvokeHTTP/m-p/375356#M242416</guid>
      <dc:creator>JamesMillere</dc:creator>
      <dc:date>2023-08-18T09:36:34Z</dc:date>
    </item>
  </channel>
</rss>

