I am using ExecuteStreamCommand Processor in Nifi 1.9.1 and instead of exposing password in curl command, I would like to hide it.
I want to generate token using curl command through ExecuteStreamCommand Processor or suggest a better solution where i can generate a token using Ldap enabled Nifi API
ExecuteStreamCommand Property:
Command Argument: -sSK;-u;<userid>:<password>;-d;username=<userid>&password=<password>;--request;POST;--header;Content-Type:application/x-www-form-urlencoded;--header;Accept:text/plain;--data;${data:toString()};https://<nifiurl>/nifi-api/access/token
Command Path : curl