Support Questions

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

[NIFI] : how use invokeHTTP to token and digest

avatar
Rising Star

Hi all,

I'm trying use invokeHTTP to get a digest and token from an API, here my curl command :

curl  --silent -ik --url https://${OKAPI_HOST}/oauth/access_token -H "Authorization: Bearer $(base64 -w 0 < ${KEYTAB_FILE})" -d grant_type=client_credentials --data-urlencode scope=${SCOPE}

how send parameter to invokeHTTP ? I'm thinking use updateAttribute to set scope, Authorization but it don't work.

thanks

38390-invokehttp-token.jpg

1 REPLY 1

avatar
@mayki wogno

When using the InvokeHttp, the body of the request has to be in the content of the flow file.