Allow to specify web proxy #123
Comments
Is there any progress on adding this functionality? We need it for an upcoming project. |
There were no asks so far so it was not implemented yet. |
We are happy to help with the testing once the functionality has been added! |
I will be adding some things to the client soon so will take a look at this as well. Stay tuned. |
I also would appreciate this functionality a lot, along with the possibility to set credentials. Actually, I'd need detailed control over the options offered by the C++ Rest SDK (including things like I need to set options both for
I'd extend the constructors of connection and hub_connection as follows:
Of course, this would put Casablanca types into the SignalR API - but since the PPLX classes are already part of it, maybe that's Ok? If you want this API, I could send a pull request. |
@ChristophAlbert - thanks. I will get back to you soon. |
I think it is fine - |
@moozzyk - While I have the code basically ready (at least setting a proxy works ;) ), I have some trouble writing tests for it. I'd like to write a test where the credentials are used to perform Basic Authentication (negotiated by a 401 challenge). The SignalR negotiation seems to work, but the Websocket connection can not be established. I'm testing on Windows 7, the error I get is After looking at the Casablanca-Source, I noticed that in Do you happen to know if there is any way this can be fixed in the SignalR code, or what the right place would be? The only workaround I currently have is to manually calculate the Basic Auth Header and set it explicitly, but that sort of defeats the purpose of the authentication challenge... |
@ChristophAlbert I guess this is one of these changes which will be quite hard to test. What I would try doing to test it end to end would be to set a header in the config and then send the value back to the client from the server (empty if header did not exist) and verify that the values match. I don't think it's a good idea to bake basic authentication in SignalR (some valid concerns here: aspnet/Security#209) - if Casablanca does not support it the user will have to do it on their side. You could raise this on the cpprestsdk github. Looks like they took a PR where someone add support for basic auth for the http_client (microsoft/cpprestsdk#97) |
Currently we don't allow to specify a web proxy. The underlying http/websocket stack allows specifying a proxy and the users may sometimes need to do that.
The text was updated successfully, but these errors were encountered: