title: Authenticate Nifi using OpenID Connect using API
body: <p>I am new to OpenID connect &amp; 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. </p>
  
  <p>I have already written python code which does automated flow deployment for basic nifi installation (unsecured &amp; without user authentication) </p>
  
  <p>Now, I have to move the code to secured Nifi installation. How to authenticate to OpenID connect using nipyapi/rest API ? </p>
  
  <p>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.
  <a href="https://stackoverflow.com/questions/57447542/nifi-client-certificate-authorization-error">Nifi - Client Certificate Authorization Error</a></p>