Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

[NIFI] : how use invokeHTTP to token and digest

[NIFI] : how use invokeHTTP to token and digest

Explorer

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
Highlighted

Re: [NIFI] : how use invokeHTTP to token and digest

@mayki wogno

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

Don't have an account?
Coming from Hortonworks? Activate your account here