NiFi : InvokeHttp, authenticate to Salesforce's Bulk API V 2 , Oauth 2
Hello everyone,
I am trying to authenticate with InvokeHttp NiFi Processor to Salesforce by using Bulk API v2 and with OAuth 2.0 :
ck_sadchaouche_6-1606816870985.png
The InvokeHttp Processor is configured as follow :
ck_sadchaouche_7-1606817038511.png
The Remote URL is made by using this syntax:
https://< mydomain >.salesforce.com/services/oauth2/token?grant_type=password&client_id=<client_id>&client_secret=<client_secret>&username=<username>&password=<password + key>
As we are using the HTTPS protocol, we add a “SSL Context Service” by setting a new “SSL Context Controller Service”:
ck_sadchaouche_8-1606817459585.png
And the Post request is already tested and worked with Postman tool, by responding with an authentication token.
The blocking point for this use case is that, with InvokeHTTP NIFI Processor we have not been able to get a response from the Bulk API ( the first image show that we never receive any response from Salesforce )
If you have any suggestion, it's will be helpful.
Thank you in advance
KSAD


