Accessing NiFi API with SAML Authentication in NiFi 1.28.1
Hi Cloudera Community/@
I'm currently working with Apache NIFI version 1.28.1 and have successfully configured SAML authentication using an Okta for UI login.
I now need to access the NIFI REST API (/nifi-api) programmatically, but I'm facing challenges due to the nature of SAML being browser-based. Specifically, I’d like to know:
- What are the supported or recommended methods to access the NIFI API when SAML authentication is enabled?
- Is there a way to retrieve or reuse the JWT token issued after SAML login for API calls?
- Can NIFI processors or external scripts be used to automate token retrieval or API access in this setup?
- Are there any best practices or alternative authentication mechanisms (e.g., client certificates or hybrid setups) that can be used alongside SAML for API access?
Any guidance or examples would be greatly appreciated!
Thanks in advance.

