<?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: Connect Airflow to Nifi and access the Nifi-Api through an openId Keycloak connection token in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/364952#M239277</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95755"&gt;@bmoisson&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101947"&gt;@Sumit6620&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;When you authenticate via NiFi, there is both a client JWT token generated and a server side key&amp;nbsp; generated on the node on which the authentication was performed.&amp;nbsp; That Client JWT token can then be used to perform calls to rest-api endpoints on that node only for which that client is authorized.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you are obtaining your JWT token from an external authentication endpoint, NiFi won't have the server side token need to validate that token and thus rejects that token.&lt;BR /&gt;&lt;BR /&gt;You can find the various methods of authentication that can be configured in Apache NiFi here:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 17:44:44 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2023-03-01T17:44:44Z</dc:date>
    <item>
      <title>Connect Airflow to Nifi and access the Nifi-Api through an openId Keycloak connection token</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/336128#M232147</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to connect my&amp;nbsp;Airflow application with my&amp;nbsp;Apache Nifi application though the Apache Nifi API. The aim is to let the Airflow orchestrate my entire flow.&lt;BR /&gt;&lt;BR /&gt;My Apache Nifi authentication is made via the OpenId protocol on a Keycloak application so I first get a token via a call to the&amp;nbsp;&lt;SPAN&gt;auth/realms/myrealms/protocol/openid-connect/token and then with&amp;nbsp;the generated JWT, I call the nifi-api to catch some processors, passing the JWT as a bearer token, I have got the following error :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;Bearer error="invalid_token", error_description="An error occurred while attempting to decode the Jwt: Signed JWT rejected: Another algorithm expected, or no matching key(s) found", error_uri="&lt;A href="https://tools.ietf.org/html/rfc6750#section-3.1" target="_blank"&gt;https://tools.ietf.org/html/rfc6750#section-3.1&lt;/A&gt;"&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried the same curl call to the processor, using the token I get when I connect with the UserInterface, and I get a success.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I supposed it may be due to the internal user policy of Nifi who rejecte me so I added username and email of the first token to the Nifi policy, but it change nothing.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Does someone may help me please?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:42:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/336128#M232147</guid>
      <dc:creator>bmoisson</dc:creator>
      <dc:date>2022-02-11T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Airflow to Nifi and access the Nifi-Api through an openId Keycloak connection token</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/364859#M239257</link>
      <description>&lt;P&gt;I am also facing the same issue. Pls, help me.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 04:51:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/364859#M239257</guid>
      <dc:creator>Sumit6620</dc:creator>
      <dc:date>2023-03-01T04:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Airflow to Nifi and access the Nifi-Api through an openId Keycloak connection token</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/364952#M239277</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95755"&gt;@bmoisson&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101947"&gt;@Sumit6620&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;When you authenticate via NiFi, there is both a client JWT token generated and a server side key&amp;nbsp; generated on the node on which the authentication was performed.&amp;nbsp; That Client JWT token can then be used to perform calls to rest-api endpoints on that node only for which that client is authorized.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you are obtaining your JWT token from an external authentication endpoint, NiFi won't have the server side token need to validate that token and thus rejects that token.&lt;BR /&gt;&lt;BR /&gt;You can find the various methods of authentication that can be configured in Apache NiFi here:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#user_authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 17:44:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/364952#M239277</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-03-01T17:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Airflow to Nifi and access the Nifi-Api through an openId Keycloak connection token</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/369927#M240587</link>
      <description>&lt;P&gt;i aslo face that problem can you provid code exmaple of the solution?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 08:24:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connect-Airflow-to-Nifi-and-access-the-Nifi-Api-through-an/m-p/369927#M240587</guid>
      <dc:creator>perziba</dc:creator>
      <dc:date>2023-05-03T08:24:23Z</dc:date>
    </item>
  </channel>
</rss>

