<?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 InvokeHTTP to get a token from an API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/345069#M79072</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97992"&gt;@Venkatgundla&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you ever get a response to your question??&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Declan&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 01:16:38 GMT</pubDate>
    <dc:creator>Declan</dc:creator>
    <dc:date>2022-06-07T01:16:38Z</dc:date>
    <item>
      <title>Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214325#M79064</link>
      <description>&lt;P&gt;I have curl command as below. &lt;/P&gt;&lt;P&gt;curl -s -XPOST  -H "Accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d 'username=usco&amp;amp;password=asdl2342&amp;amp;client_id=dwer234324-2sd2-32dwq&amp;amp;scope=read' 'https://rest.abc.com/security'&lt;/P&gt;&lt;P&gt;I am trying to replicate this in Nifi. I am trying to figure out how and where the above options to be provided in InvokeHTTP processor. I have gone through the articles and some mentioned I have to define it in body of flow file. But I couldn't understand what exactly goes into body and what goes into extra attributes (if I need to add) in InvokeHTTP processsor. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 23:39:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214325#M79064</guid>
      <dc:creator>karteek_chunchu</dc:creator>
      <dc:date>2018-06-01T23:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214326#M79065</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70474/karteekchunchu.html" nodeid="70474"&gt;@RC&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Here is what I think you should use to make this work:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;-X POST &lt;/TD&gt;&lt;TD&gt;use processor &lt;STRONG&gt;HTTP method&lt;/STRONG&gt; attribute and set to POST&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-x &lt;A href="http://proxyhost:port" target="_blank"&gt;http://proxyhost:port&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;I think you should consider adding &lt;A href="https://community.hortonworks.com/content/supportkb/167107/unable-to-perform-http-connections-through-proxy-i.html"&gt;this&lt;/A&gt; configuration or add properties &lt;STRONG&gt;Proxy host&lt;/STRONG&gt;=proxyhost, &lt;STRONG&gt;Proxy port&lt;/STRONG&gt;=port and &lt;STRONG&gt;Proxy protocol&lt;/STRONG&gt;=https&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-H "Accept: application/json"&lt;/TD&gt;&lt;TD&gt;Use the &lt;STRONG&gt;Attributes to send&lt;/STRONG&gt; referencing a new attribute with the value (add 1 extra attributes with corresponding value)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-H "Content-Type: application/x-www-form-urlencoded"&lt;/TD&gt;&lt;TD&gt;Use &lt;STRONG&gt;Content type&lt;/STRONG&gt; attribute&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-d 'data sent'&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Send Message Body &lt;/STRONG&gt;= true. And the content should come as inbound flowfile to the processor. To test try adding a GenerateFlowFile processor with the content without single quotes&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="https://hostname/security/v1/oauth/token" target="_blank"&gt;https://hostname/security/v1/oauth/token&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;Set in &lt;STRONG&gt;Remote url&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Finally since endpoint is ssl enabled you need to set &lt;STRONG&gt;SSL Context Service&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jun 2018 00:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214326#M79065</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-06-02T00:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214327#M79066</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11048/falbani.html"&gt;Felix Albani&lt;/A&gt; &lt;/P&gt;&lt;P&gt;     Thank you very much. that worked perfectly. I have one more question. What if I have one more header such as -H "Authorization: Bearer 27ffdfada34982-1123qwdq2" . How do I send it ? &lt;BR /&gt;Should I be adding one more property and set the name as 'Authorization and Value as Bearer 27ffdfada34982-1123qwdq2 ? &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;Can I specify more than one attribute in AttributestoSend in InvokeHTTP processor ? If yes, should they be seperated by comma or space or something else ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 21:18:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214327#M79066</guid>
      <dc:creator>karteek_chunchu</dc:creator>
      <dc:date>2018-06-04T21:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214328#M79067</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/70474/karteekchunchu.html" nodeid="70474"&gt;@RC&lt;/A&gt; Based on the documentation is a regular expression:&lt;/P&gt;&lt;PRE&gt;Regular expression that defines which attributes to send as HTTP headers in the request.&lt;/PRE&gt;&lt;P&gt;perhaps you can name your list of attributes:&lt;/P&gt;&lt;PRE&gt;httpheader1&amp;lt;br&amp;gt;httpheader2&amp;lt;br&amp;gt;httpheaderN&lt;/PRE&gt;&lt;P&gt;then use a regex like this httpheader[1-N]&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 21:37:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214328#M79067</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-06-04T21:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214329#M79068</link>
      <description>&lt;P&gt;I have added Accept and Authorization in UpdateAttribute processor before InovkeHTTP processor and in the Attributes to Send property (in InovkeHTTP) - I have used .*   &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 00:34:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/214329#M79068</guid>
      <dc:creator>karteek_chunchu</dc:creator>
      <dc:date>2018-06-08T00:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/294329#M79069</link>
      <description>&lt;P&gt;Attached is the screenshot for the solution&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E2E  Flow" style="width: 721px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27187i91F2DB79929B0C9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Token_1.PNG" alt="E2E  Flow" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;E2E  Flow&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Generate Flow File" style="width: 604px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27188iF2134C4C835CE7D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="GenerateFlowFile.PNG" alt="Generate Flow File" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Generate Flow File&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InvokeHttp." style="width: 719px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27189i2AD6956B215956F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="invokeHTTP.PNG" alt="InvokeHttp." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;InvokeHttp.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 06:20:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/294329#M79069</guid>
      <dc:creator>Rups</dc:creator>
      <dc:date>2020-04-20T06:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/343937#M79070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/46950"&gt;@karteek_chunchu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am also working on &lt;SPAN&gt;Authorization: Bearer, Could you please me know how you added this token in invoke HTTP processor.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you have a sample template, what are the configurations needed for this, can you please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;BR /&gt;Venkat&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 21:04:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/343937#M79070</guid>
      <dc:creator>Venkatgundla</dc:creator>
      <dc:date>2022-05-17T21:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/343938#M79071</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97992"&gt;@Venkatgundla&lt;/a&gt;&amp;nbsp;Hi, as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 21:10:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/343938#M79071</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2022-05-17T21:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/345069#M79072</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97992"&gt;@Venkatgundla&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you ever get a response to your question??&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Declan&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 01:16:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/345069#M79072</guid>
      <dc:creator>Declan</dc:creator>
      <dc:date>2022-06-07T01:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/345070#M79073</link>
      <description>&lt;P&gt;If you are looking to authenticate using Oath2.0 then you need to create new property in the InvokeHttp processor and call the property "Authorization" and the value should be set as:&lt;/P&gt;&lt;P&gt;"Bearer [Authorization Token]". First you need to get the authentication token. hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 01:55:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/345070#M79073</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-06-07T01:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/359559#M79074</link>
      <description>&lt;P&gt;Hi can you please help with this query, I am facing the same issue how did you resolve it.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:37:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/359559#M79074</guid>
      <dc:creator>Bello</dc:creator>
      <dc:date>2022-12-15T09:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi InvokeHTTP to get a token from an API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/359568#M79075</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102437"&gt;@Bello&lt;/a&gt;&amp;nbsp;as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 13:16:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-InvokeHTTP-to-get-a-token-from-an-API/m-p/359568#M79075</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-12-15T13:16:10Z</dc:date>
    </item>
  </channel>
</rss>

