<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can we secure our api made via HandleHttpRequest like OIDC/Oauth2 based security? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414128#M254654</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114561"&gt;@AlokKumar&lt;/a&gt;&amp;nbsp;I absolutely love this question.&amp;nbsp; YES, it is possible!&amp;nbsp; &amp;nbsp;I recently built an API with NiFI and guess what,&amp;nbsp; no auth!!&amp;nbsp; &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&amp;nbsp; &amp;nbsp; It is just a web api handling form posts, so it does nothing requiring auth, but it does respond with appropriate error codes if things happen unexpectedly.&amp;nbsp; &amp;nbsp;I can see you are thinking in terms of needing to add authentication layer which I think is required.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Two solutions:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp; Provide an auth mechanism in front of NiFi within load balancer.&amp;nbsp;&lt;BR /&gt;2.&amp;nbsp; Build this auth check into the nifi api flow itself.&lt;BR /&gt;&lt;BR /&gt;For the latter,&amp;nbsp; nifi can do anything right?&amp;nbsp; &amp;nbsp;There are many ways to do this, but after HandleHttpRequest, you could check an external system for valid user/pass, token, etc.&amp;nbsp; I think your specificl requirements would dictate the logic further.&amp;nbsp; An invalid auth would return appropriate HandleHttpResponse w/ 4xx error codes.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One thing I would recommend is accounting for timeouts or slow clients.&amp;nbsp; &amp;nbsp;If a client is waiting for an external auth check, you need to be sensitive that call out could take too long in terms of the api connection.&amp;nbsp; Make the nifi flow account for that scenario as well to handle the client timeout.&amp;nbsp; &amp;nbsp;If this is a major concern, i would investigate the first solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2026 13:15:58 GMT</pubDate>
    <dc:creator>steven-matison</dc:creator>
    <dc:date>2026-05-28T13:15:58Z</dc:date>
    <item>
      <title>Can we secure our api made via HandleHttpRequest like OIDC/Oauth2 based security?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414121#M254647</link>
      <description>&lt;P&gt;Hello can we secure our apis in nifi? Suppose we create nifi flow which utilises HandleHttpRequest for exposing an api. How to secure this? Is it possible to have Oauth2/Oidc?&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 08:29:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414121#M254647</guid>
      <dc:creator>AlokKumar</dc:creator>
      <dc:date>2026-05-27T08:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can we secure our api made via HandleHttpRequest like OIDC/Oauth2 based security?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414128#M254654</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114561"&gt;@AlokKumar&lt;/a&gt;&amp;nbsp;I absolutely love this question.&amp;nbsp; YES, it is possible!&amp;nbsp; &amp;nbsp;I recently built an API with NiFI and guess what,&amp;nbsp; no auth!!&amp;nbsp; &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&amp;nbsp; &amp;nbsp; It is just a web api handling form posts, so it does nothing requiring auth, but it does respond with appropriate error codes if things happen unexpectedly.&amp;nbsp; &amp;nbsp;I can see you are thinking in terms of needing to add authentication layer which I think is required.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Two solutions:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp; Provide an auth mechanism in front of NiFi within load balancer.&amp;nbsp;&lt;BR /&gt;2.&amp;nbsp; Build this auth check into the nifi api flow itself.&lt;BR /&gt;&lt;BR /&gt;For the latter,&amp;nbsp; nifi can do anything right?&amp;nbsp; &amp;nbsp;There are many ways to do this, but after HandleHttpRequest, you could check an external system for valid user/pass, token, etc.&amp;nbsp; I think your specificl requirements would dictate the logic further.&amp;nbsp; An invalid auth would return appropriate HandleHttpResponse w/ 4xx error codes.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One thing I would recommend is accounting for timeouts or slow clients.&amp;nbsp; &amp;nbsp;If a client is waiting for an external auth check, you need to be sensitive that call out could take too long in terms of the api connection.&amp;nbsp; Make the nifi flow account for that scenario as well to handle the client timeout.&amp;nbsp; &amp;nbsp;If this is a major concern, i would investigate the first solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 13:15:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414128#M254654</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2026-05-28T13:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can we secure our api made via HandleHttpRequest like OIDC/Oauth2 based security?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414137#M254657</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;for suggesting possible solutions. Could you please elaborate as I am new to these terms. I used to have my apis in Java/Spring Boot secured via OIdc/Oauth2 or even Basic for test apis earlier. We used to have libraries in Spring Boot to configure OIDC.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 05:35:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-we-secure-our-api-made-via-HandleHttpRequest-like-OIDC/m-p/414137#M254657</guid>
      <dc:creator>AlokKumar</dc:creator>
      <dc:date>2026-05-29T05:35:31Z</dc:date>
    </item>
  </channel>
</rss>

