You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User is authenticated in ASP.NET MVC and I need to get username in SignalR hub.
To do this I access Context.User.Identity.IsAuthenticated and Context.User.Identity.Name inside hub.
On development machine Windows Server 2008 / Visual Studio 2013 IIS Express and IIS7 everything works fine.
When I deploy to WIndows Server 2012R2 and IIS 8.5 Context.User.Identity.IsAuthenticated is always false and Context.User.Identity is always empty.
When I run the same code on development machine - everything works fine.
I even uninstalled WebSockets support on Windows Server 2012R2 but the problem still there.
What is the reason of this behavior? How to fix it?
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
I SignalR 2.1.2 and ASP.NET MVC 5.1
User is authenticated in ASP.NET MVC and I need to get username in SignalR hub.
To do this I access Context.User.Identity.IsAuthenticated and Context.User.Identity.Name inside hub.
On development machine Windows Server 2008 / Visual Studio 2013 IIS Express and IIS7 everything works fine.
When I deploy to WIndows Server 2012R2 and IIS 8.5 Context.User.Identity.IsAuthenticated is always false and Context.User.Identity is always empty.
When I run the same code on development machine - everything works fine.
I even uninstalled WebSockets support on Windows Server 2012R2 but the problem still there.
What is the reason of this behavior? How to fix it?
Thank you.
The text was updated successfully, but these errors were encountered: