Dec 01, 2013 03:20 AM|Christian_Sorensen|LINK
I have a ASP.NET MVC web site at localhost:80 with a login form and another ASP.NET web site at localhost:90 running SignalR Hubs. I want both sites to share authentication. To do this I have configured both sites web.config with forms authentication. I
have also made sure to include the same machine key in both web.configs.
Everything seems to be working as long as I do normal requests. I tested this making a HttpModule where I can see that the User.Principal is set correctly set at localhost:90 web site.
But when SignalR communicates with the server using web sockets the User.Principal is null. Also, when SignalR communicates with the server the HttpModule isent called.
It feels like I tried everything by now, but I guess I must have missed something obvious... =/