title: Securing SignalR Calls
body: <p>I'm using the SignalR Javascript client and ASP.NET ServiceHost.  I need the SignalR hubs and callbacks to only be accessible to logged in users.  I also need to be able to get the identity of the currently logged in user from the Hub using the FormsIdentity from HttpContext.Current.User.</p>
  
  <ol>
  <li>How do I secure the hub's so that only authenticated users can use SignalR?</li>
  <li>How do I get the identity of the currently logged in user from the Hub?</li>
  </ol>