<?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 NiFi: How to pass basic authentication header while connecting to secured websocket in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-How-to-pass-basic-authentication-header-while/m-p/174859#M137122</link>
    <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/41531-client.txt"&gt;client.txt&lt;/A&gt;I need to connect to a secure websocket wss://...... I am able to connect to the socket using java client. I pass username and password as Basic Authorization in the header.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;headers.put("Authorization", Arrays.asList("Basic " + new BASE64Encoder().encode(credentials.getBytes())));&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Attached the full java code.&lt;/P&gt;&lt;P&gt;In NiFi I followed the article &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/68378/nifi-websocket-support.html" target="_blank"&gt;https://community.hortonworks.com/articles/68378/nifi-websocket-support.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and started using connectWebSocket processor but looks like I should be using java keystore or trust store which I don't have.&lt;/P&gt;&lt;P&gt;How can I pass the header while connecting to the websocket api.&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 14:19:40 GMT</pubDate>
    <dc:creator>balakrishna_a_d</dc:creator>
    <dc:date>2017-10-26T14:19:40Z</dc:date>
  </channel>
</rss>

