title: Re-use ASP.NET MVC 5 logged in user identity in SignalR 2.1.2 Hub
body: <p>I have ASP.NET MVC 5 application that uses CookieAthentication.</p>
  
  <p>Inside SignalR 1.x Hub I successfully used:</p>
  
  <p><code>HttpContext.Current.User.Identity.IsAuthenticated;</code></p>
  
  <p>and</p>
  
  <p><code>HttpContext.Current.User.Identity.Name;</code></p>
  
  <p>To check if the user was logged in in ASP.NET MVC 5 application and his name.</p>
  
  <p>Looks like things are changed in SignalR and it doesn't work anymore.</p>
  
  <p>I also tried:</p>
  
  <p><code>Context.Request.GetHttpContext().User.Identity.IsAuthenticated;
  Context.Request.GetHttpContext().User.Identity.Name;
  </code></p>
  
  <p>Both don't get the user identity that was in ASP.NET MVC 5 application.</p>
  
  <p>What is the right way to get the user identity that was set and used in ASP.NET MVC?</p>
  
  <p>UPDATE:
  In IIS 7 - everything is OK
  In IIS 8.5 - it's not possible to access HttpContext.Current.User.Identity.Name is always empty.</p>