Created on 06-26-2024 08:56 PM - edited 06-26-2024 08:57 PM
Hi,
I am looking to use invokehttp with StandardOAuth2AccessTokenProvider controller to automatically get Access Token and make the API call with the token. The requirement to get token has an extra field compared to standard OAUTH token :
Below is the curl command. It includes extra key called auth_chain.
If I add auth_chain as property it errors out saying :
How can I make this OAUTH call to get token using invoke http.
*please note, cannot use the option provided here (https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlenco...), as it exposes the credentials in data provenance and application layer and network layer too.
Created 06-27-2024 02:03 AM
@AlphaNiFi, Welcome to our community! To help you get the best possible answer, I have tagged our NiFi experts @SAMSAL @steven-matison @MattWho who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 06-27-2024 03:34 AM
Hello,
We you can try something like this.
Step 1 : Add an InvokeHTTP Processor to Generate the Token
Step 2: Extract Token Using EvaluateJsonPath Processor:
Step 3: Use the Token in a InvokeHTTP
Thanks,