Created 01-08-2018 09:44 AM
Hello,
I'm trying to use Nifi to connect to a secure WebSocket (wss:// .... ). I'm having trouble connecting to the stream because of a very basic authentication issue.
I've used wscat (npm) and a Java client to successfully connect in the past. All that was needed is an Http Header.
The wscat implementation would only require the following option:
.option('-H, --header <header:value>', 'Set an HTTP header. Repeat to set multiple. (--connect only)', appender(), [])
But, when I add the header as a property to the ConnectWebSocket processor and/or the JettyWebSocketClient, Nifi complains that it is not a supported property.
Since SSL context services are not required to connect to this particular stream, is there a way that I can still connect just using a custom header?
Created 02-12-2018 06:49 PM
Anyone out there have any hints or tips on this?
Created 01-19-2021 12:20 AM
did you get a solution to this problem?
Created 01-19-2021 12:46 AM
@dvmishra, as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.
Regards,
Vidya Sargur,Created 01-19-2021 03:20 AM
Have you tried passing header details under property "Authentication Header Charset" under JettyWebSocketClient ?