Member since
08-22-2023
1
Post
0
Kudos Received
0
Solutions
08-24-2023
07:31 AM
Hello! How's it going? I'm having trouble using the nifi API .... Why can't I get token to use nifi api? , we use LDAP for authentication. I am using the following (Python): import requests url = 'https://managmentsite.cloudera.site/apdazrusbicdpdfl/cdp-proxy-api/nifi-app/nifi-api/access/token' headers = { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' } data = { 'username': 'user', 'password': 'pass' } response = requests.post(url, headers=headers, data=data, verify=False) print(response.text) print(response.status_code) print(response.content) the api endpoint is correct (url), the username and password are correct, What is the error due to?
... View more
Labels:
- Labels:
-
Apache NiFi