Support Questions

Find answers, ask questions, and share your expertise

Connect to nifi cluster by passing username and password using nipyapi

avatar
Explorer

Hello, 

 

I have been trying to connect to NiFi by passing the username and password using nypyapi. Here is the sample code I'm using. Am I doing something wrong here.

 

nipyapi.config.nifi_config.host = 'https://10.23.44.20:80/nifi-api'
login = nipyapi.security.service_login(service='nifi', username='nifi', password='xxxx', bool_response=True)

 

Below is the excerpt from the documentation on nipyapi.security.service_login.. 

 

Login requires a secure connection over https. Prior to calling this method, the host must be specified and the SSLContext should be configured (if necessary).

1 REPLY 1

avatar
Explorer

Were you able to figure out the solution for this. I have been trying to connect to secured nifi using username and password.