- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
InvokeHTTP
- Labels:
-
Apache NiFi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have to invoke multiple Endpoints with the "same" user credentials (basic auth). I don't want to hard code "Basic Auth UserName" and "Basic Auth Password" for each InvokeHttp header. Is there a easy way to maintain it in one place and pass it to each InvokeHttp processor?
Created 10-26-2020 04:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MKS_AWS You can do this in different ways.
Possibility 1
Create variables in VariableRegistry containing your authorization data.
Possibility 2
Create a parameter list and define your authorization data there in parameters.
In both ways you can use the variables or parameters inside the InvokeHTTP.
Here an example with variables.
If you get your authorization data from a database table just set them into attributes and use them in the same way.