Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Apache Nifi - Dynamic Token Loading into Authorisation of InvokeHttp

avatar
Explorer

Hi Everyone,

 

I am trying to create Authorisation header to which token can be loaded dynamically. I am using invokeHttp within which I have setup a field Authorisation but I am unable to understand what to place in the value side. 

 

My situation is I have 2 flowfiles both coming separately, one contains the token then other contains body of the request. I am unable to understand how to make the request here, when things are in 2 separate flowfiles. Any help?

 

Regards

Ashwin

1 REPLY 1

avatar
Master Collaborator

Hi @ashwinrk 

maybe this information will help you further:


https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307990#M223438

 

It depends on the concrete target whether the "Authorization" has to be base64encoded or you can use basic authentication.