<?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: How to authenticate NiFi processor on SFDC REST API calls in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157151#M119558</link>
    <description>&lt;P&gt;According to &lt;A target="_blank" href="https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_authentication.htm"&gt;this&lt;/A&gt;, Salesforce requires authentication via OAuth 2.0. Please see &lt;A target="_blank" href="https://community.hortonworks.com/questions/46800/using-gethttp-for-salesforce-integration-with-oaut.html"&gt;this HCC article&lt;/A&gt; for a discussion (and related links) on how to achieve this. The question is about the GetHttp processor but should apply to InvokeHttp as well. &lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 19:41:11 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2017-03-15T19:41:11Z</dc:date>
    <item>
      <title>How to authenticate NiFi processor on SFDC REST API calls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157150#M119557</link>
      <description>&lt;P&gt;We used the InvokeHTTP processor in NiFi on Salesforce REST API (POST action, to effect changes in customer data). Salesforce requires authentication in using of its REST endpoints. Is the InvokeHTTP the right processor for this requirement? How do we maintain authenticated connection / session to REST API?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 13:27:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157150#M119557</guid>
      <dc:creator>menorah84</dc:creator>
      <dc:date>2017-03-15T13:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate NiFi processor on SFDC REST API calls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157151#M119558</link>
      <description>&lt;P&gt;According to &lt;A target="_blank" href="https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_authentication.htm"&gt;this&lt;/A&gt;, Salesforce requires authentication via OAuth 2.0. Please see &lt;A target="_blank" href="https://community.hortonworks.com/questions/46800/using-gethttp-for-salesforce-integration-with-oaut.html"&gt;this HCC article&lt;/A&gt; for a discussion (and related links) on how to achieve this. The question is about the GetHttp processor but should apply to InvokeHttp as well. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157151#M119558</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-15T19:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate NiFi processor on SFDC REST API calls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157152#M119559</link>
      <description>&lt;P&gt;Thanks for the tip Matt. I am now in the part where I have two InvokeHTTP processors, the first for login or getting the access token (let's call this SFDCLogin), and the second is where the SFDC REST API is configured for posting changes to SalesForce's ObjectStore (let's call this SFDCUpdate). I having a hard time doing the plumbing on this. The idea is, the FlowFiles (wherever they come from, assuming its GetFile processor) would move to SFDCUpdate and then if rebuffed due to missing or expired access token, will go to SFDCLogin processor and do whatever it needs to do and then go to SFDCUpdate. Note that I only need to pass through SFDCLogin once, once authenticated; not multiple times. Any custom logic, attribute, property, or expression language to make this work?&lt;/P&gt;&lt;P&gt;I also tried using the ExecuteScript processor using ECMAScript or Python, and do the REST API calls there on the login part. However, I'm hitting a roadblock on XMLHttpRequest (in ECMAScript) or requests (in Python) as it seems I need to point to their libraries. Should I be using a Java library (jar of HttpComponents perhaps) instead as these scripting languages are meant to wrappers only? Or can I point to their respective libraries natively?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 20:21:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/157152#M119559</guid>
      <dc:creator>menorah84</dc:creator>
      <dc:date>2017-03-21T20:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate NiFi processor on SFDC REST API calls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/291361#M215440</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its been a long time now. Not sure, you are still on track with NiFi. Just to know how do you achieve this. Can you share some insights?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 15:03:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/291361#M215440</guid>
      <dc:creator>Kart</dc:creator>
      <dc:date>2020-03-08T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to authenticate NiFi processor on SFDC REST API calls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/291362#M215441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75266"&gt;@Kart&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As this is a thread which was marked 'Solved' over three years ago, you would have a better chance of receiving a resolution by&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/forums/postpage/board-id/Questions" target="_blank" rel="noopener"&gt;posting a new question&lt;/A&gt;. This will also present you with the opportunity to include details specific to your environment that could aid other members in providing a more relevant answer to your question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 16:45:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-authenticate-NiFi-processor-on-SFDC-REST-API-calls/m-p/291362#M215441</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2020-03-08T16:45:20Z</dc:date>
    </item>
  </channel>
</rss>

