<?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: Connecting Nifi to Keycloak in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401673#M251274</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123784"&gt;@Darryl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will certainly have issues using localhost even outside docker with a multi-node NiFi cluster since only the NiFi node installed in the same server as Keycloak would have any chance of connecting with Keycloak.&amp;nbsp; &amp;nbsp;Understand that a NiFi cluster can bae accessed form any node in the NiFi cluster. So first thing i would have suggested is using the hostname of the actual server that is hosting Keycloak rather then localhost.&lt;BR /&gt;&lt;BR /&gt;I am not familiar with Keycloak myself and the article you reference (while i know the author) is very old. A lot has likely evolved/changes with regards to security since it was written.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Glad to hear you had some success even if it was outside of Docker and thank you with sharing what you learned with the community.&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 20:09:48 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-02-07T20:09:48Z</dc:date>
    <item>
      <title>Connecting Nifi to Keycloak</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401649#M251265</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Caused by: org.apache.nifi.web.client.api.WebClientServiceException: Request execution failed HTTP Method [GET] URI [&lt;A href="http://localhost:8080/realms/master/protocol/saml/descriptor" target="_blank" rel="noopener nofollow noreferrer"&gt;http://localhost:8080/realms/master/protocol/saml/descriptor&lt;/A&gt;]&lt;BR /&gt;&lt;BR /&gt;using these settings:&lt;BR /&gt;&lt;BR /&gt;nifi.security.user.saml.idp.metadata.url=&lt;A href="http://localhost:8080/realms/master/protocol/saml/descriptor" target="_blank" rel="noopener nofollow noreferrer"&gt;http://localhost:8080/realms/master/protocol/saml/descriptor&lt;/A&gt;&lt;BR /&gt;nifi.security.user.saml.sp.entity.id=org:apache:nifi:saml:sp&lt;BR /&gt;nifi.security.user.saml.identity.attribute.name=&lt;BR /&gt;nifi.security.user.saml.group.attribute.name=&lt;BR /&gt;nifi.security.user.saml.request.signing.enabled=false&lt;BR /&gt;nifi.security.user.saml.want.assertions.signed=true&lt;BR /&gt;nifi.security.user.saml.signature.algorithm=&lt;A href="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/04/xmldsig-more#rsa-sha256&lt;/A&gt;&lt;BR /&gt;nifi.security.user.saml.authentication.expiration=12 hours&lt;BR /&gt;nifi.security.user.saml.single.logout.enabled=false&lt;BR /&gt;nifi.security.user.saml.http.client.truststore.strategy=JDK&lt;BR /&gt;nifi.security.user.saml.http.client.connect.timeout=30 secs&lt;BR /&gt;nifi.security.user.saml.http.client.read.timeout=30 secs&lt;BR /&gt;&lt;BR /&gt;Following instructions from here, except i am using the latest version of keycloak&lt;BR /&gt;&lt;A href="https://bryanbende.com/development/2021/02/17/apache-nifi-saml-keycloak" target="_blank" rel="nofollow noopener noreferrer"&gt;Apache NiFi SAML Authentication with Keycloak&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is what the url looks like in my browser:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darryl_0-1738939205916.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/43786i936C7587923E1986/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Darryl_0-1738939205916.png" alt="Darryl_0-1738939205916.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Darryl_1-1738939295241.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/43787iBE5C23CDE860CBA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Darryl_1-1738939295241.png" alt="Darryl_1-1738939295241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 14:42:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401649#M251265</guid>
      <dc:creator>Darryl</dc:creator>
      <dc:date>2025-02-07T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Nifi to Keycloak</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401668#M251272</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have amazing news to report. I decided to try to do everything outside of docker containers, and was successfully able to get it to work. Using the exact configs as i pasted above.&lt;BR /&gt;&lt;BR /&gt;Still would like to figure out why it wasn't able to work with docker.&lt;BR /&gt;nifi.security.user.saml.idp.metadata.url=&lt;A href="http://localhost:8080/realms/master/protocol/saml/descriptor" target="_blank"&gt;http://localhost:8080/realms/master/protocol/saml/descriptor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe localhost has to be replaced with some other hostname&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 18:44:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401668#M251272</guid>
      <dc:creator>Darryl</dc:creator>
      <dc:date>2025-02-07T18:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting Nifi to Keycloak</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401673#M251274</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/123784"&gt;@Darryl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will certainly have issues using localhost even outside docker with a multi-node NiFi cluster since only the NiFi node installed in the same server as Keycloak would have any chance of connecting with Keycloak.&amp;nbsp; &amp;nbsp;Understand that a NiFi cluster can bae accessed form any node in the NiFi cluster. So first thing i would have suggested is using the hostname of the actual server that is hosting Keycloak rather then localhost.&lt;BR /&gt;&lt;BR /&gt;I am not familiar with Keycloak myself and the article you reference (while i know the author) is very old. A lot has likely evolved/changes with regards to security since it was written.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Glad to hear you had some success even if it was outside of Docker and thank you with sharing what you learned with the community.&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 20:09:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-Nifi-to-Keycloak/m-p/401673#M251274</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-02-07T20:09:48Z</dc:date>
    </item>
  </channel>
</rss>

