Skip to content

Conversation

@bunowna
Copy link

@bunowna bunowna commented Jul 28, 2015

I am working on a project that requires websocket proxy support for ntlm and kerberos authentication. websocket-sharp currently only supports Basic and Digest. I searched for alternative webscoket libaries to support ntlm and kerberos with no luck.
I finally came upon a solution without the need to completely implement proxy ntlm and kerberos authentication from scratch.
I used the articlebelow as the basis for solution.

http://www.replicator.org/journal/201011170043-net-connecting-a-tcpclient-through-an-http-proxy-with-authentication

The solution is based off leveraging the Proxy Authentication handling that is already build into the HttpWebRequest in .NET. A HTTP connect made to the proxy, Authentication is handled internally, then later we reusing the socket to connect to the remote end point.

This solution is already being used by xscokets client when user sets their Proxy.

https://github.com/XSockets/XSockets.Clients/blob/master/src/XSockets.Clients/XSockets.Client35/XSocketClient.cs

Proposal is to have this available websocket-sharp in an official release

@bunowna
Copy link
Author

bunowna commented Jul 29, 2015

Updated handling of TCPClient connect async, to have a timeout of 3 seconds.

@Maxhy
Copy link

Maxhy commented Dec 12, 2017

+1 for this. It is a must have on important Windows infrastructures. Any chance for a review @sta?

@igolaizola
Copy link

+1 Any update on this?

@FalkW
Copy link

FalkW commented Sep 3, 2018

+1 also from my side. It would be really appreciated!

@julienkay
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants