Having my NIFI 1.20.0 running with HTTPS and single user authentication (username+password), I can't figure out how to authenticate the client.
I tried the following:
ApiClient client = Configuration.getDefaultApiClient()
.setBasePath(basePath)
.setVerifyingSsl(false)
.setDebugging(true);
// following line logs nothing: authentications map is empty by default
client.getAuthentications().forEach((k,v) -> System.out.println(k+"="+v));
AccessApi apiInstance = new AccessApi();
String token = apiInstance.createAccessToken(username, password);
client.setAccessToken(token); // raises RuntimeException "No OAuth2 authentication configured!"
client.setUsername("username"); // raises RuntimeException "No HTTP basic authentication configured!"
Having my NIFI 1.20.0 running with HTTPS and single user authentication (username+password), I can't figure out how to authenticate the client. I tried the following:
Any hint? Thanks in advance