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).