title: Authorization for all hubs by default in SignalR Core
body: <p>I'm working on ASP.Net Core 2.2 Web Service + SignarR Core with JWT authentication and want ensure that all my hubs could be accessed only with valid token.</p>
  
  <p>I can set [Authorize] attribute on all hubs to ensure that, but is it possible to require authorization by default (otherwise one can forget it when implementing a new hub in the future).</p>
  
  <p>Just like I can do it for controllers:</p>
  
  <pre><code>services.AddMvc(config =&gt;
                          {
                              var policy = new AuthorizationPolicyBuilder()
                                           .RequireAuthenticatedUser()
                                           .Build();
                              config.Filters.Add(new AuthorizeFilter(policy));
                          })
  </code></pre>