I have two hubs in my application. For the one I need NTLM authentication, and IP based filtering for the other. For this to work I need to set HttpListener.AuthenticationSchemes to AuthenticationSchemes.Ntlm for the first, while it remains Anonymous for the other. This means that I can not have both hubs running on the same listener connection. I have my OwinMiddleware to handle the authentication, and I am trying to set up two different endpoints for these two hubs (two different ports).
My problem is that when I don't know how to tell SignalR to map only a specific hub to specific IAppBuilder, and not all hubs that it can find. Any idea?
What I have tried:
Searched the web, asked on other forums, but I have found only solution for WebApi2 for the same problem.