Member since
07-22-2020
5
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2650 | 06-02-2023 09:00 AM |
06-02-2023
09:00 AM
1 Kudo
Thanks STeven for your recommendation. The issue result. The invokeHttp oauth2 property looks like not able to select basic authorization from the setting or I might missing something. So have to ignore oauth2 setting and implement basic auth by sending client_id and _secret separately to get token first and then send actual payload later from another invokehttp processor. Thanks for your help
... View more
05-30-2023
04:54 PM
Sorry on a few typos. Forgot to mentioned, in invokehttp configure, the Remote URL is the one that accept JSON payload. The Authorization Server URL is the token provider URL, both the same as in Postman setting. BUt in NiFi, got 401 error to get token. So COntroller setting may be somewhere invorrect. I could not identify that
... View more
05-30-2023
04:48 PM
Thanks Steven. Unfortunately, I have no NiFI server access so but I saw the invokehttp error not go to failure but as exception. I have all configuration and copied from Postman as much as I can. These seetings almost exact the same as Postman one except one thing. In POstman, it has "Add Authorizaton to Headers to Request Headers or Request URL (Both setting working to get token) while I could not find the same seeting in NiFi. In Nifi invokehttp processor, configured Oauth2 Access Token provider as in attached screen shot. All seting in NiFi processor are copy of Postman setting as I am able to aware of. The error message on invokehttp processor is 401 error to get token. An advice to resolve this? Thanks
... View more
05-29-2023
02:45 PM
Set "OAuth2 Access Token provider" in Invokehttp prosessor with grant type as client credentials as well as client id and client secret, thinking no need to Set Authorization Bearer token in this processor, the processor will dynamically set retrieved token with post request to get remote API response. But always to 401 error back. Not able to tell it is error from token provider or from remove API to send post request. However, if using Postman, in a post request, I can do it successfully to get remote API response. So I am sure the Grant type, client id and clietn secret are correct. What I am missing to get it work? WIl be very appreciate if NiFi experts guide me to configure invokeHttp processor for oauth2 seeteing to resolve my problem?
... View more
Labels:
- Labels:
-
Apache NiFi