0
votes

I am new to OpenID connect & security domain. I have configured Nifi to use OpenID for authentication using online documentation. And to automate a few nifi related tasks we are using nipyapi.

I have already written python code which does automated flow deployment for basic nifi installation (unsecured & without user authentication)

Now, I have to move the code to secured Nifi installation. How to authenticate to OpenID connect using nipyapi/rest API ?

AS per discussion with Bryan, i am planning to use client certificate for authentication but it started giving authorization error. and have created another question with the details. Nifi - Client Certificate Authorization Error

1

1 Answers

2
votes

OpenID Connect generally requires that you follow a flow of re-directs, typically in the browser. NiFi re-directs you to the login page of the OIDC provider, upon completion, the OIDC provider redirects you back to NiFi. I'm not exactly sure how, or if you even can, perform this login process from scripts. An easy alternative would be to just generate a client certificate to represent an automation user for any NiPyApi scripts. Client certificate authentication is always enabled by default for NiFi.