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)
![BKZ_0-1692887206020.png BKZ_0-1692887206020.png](https://community.cloudera.com/t5/image/serverpage/image-id/38301i4E66CAB63363B333/image-size/medium?v=v2&px=400)
the api endpoint is correct (url),
the username and password are correct,
What is the error due to?