title: Hangfire Dashboard Authorization Config Not working
body: <p>I've downloaded the nu-get package <code>Hangfire.Dashboard.Authorization</code></p>
  
  <p>I'm trying configure the OWIN based authorization as per the docs as follows but I get intellisense error <code>DashboardOptions.AuthorizationFilters is obsolete please use Authorization property instead</code></p>
  
  <p>I also get intellisense error 
  <code>The type or namespace AuthorizationFilter and ClaimsBasedAuthorizationFilterd not be found</code></p>
  
  <pre><code>using Hangfire.Dashboard;
  using Hangfire.SqlServer;
  using Owin;
  using System;
  
  namespace MyApp
  {
      public class Hangfire
      {
         public static void ConfigureHangfire(IAppBuilder app)
          {
             GlobalConfiguration.Configuration
             .UseSqlServerStorage(
                 "ApplicationDbContext",
                  new SqlServerStorageOptions 
                    { QueuePollInterval = TimeSpan.FromSeconds(1) });
  
             var options = new DashboardOptions
             {
                 AuthorizationFilters = new[]
                 {
                    new AuthorizationFilter { Users = "admin, superuser", Roles = "advanced" },
                    new ClaimsBasedAuthorizationFilter("name", "value")
                 }
             };
  
             app.UseHangfireDashboard("/hangfire", options);
             app.UseHangfireServer();
          }
      }
  }
  </code></pre>
  
  <p><strong>* UPDATE *</strong></p>
  
  <p>Since the above nuget package doesnt work I've attempted to create my own custom filter: </p>
  
  <pre><code>public class HangfireAuthorizationFilter : IAuthorizationFilter
  {
      public bool Authorize(IDictionary&lt;string, object&gt; owinEnvironment)
      {
          // In case you need an OWIN context, use the next line,
          // `OwinContext` class is the part of the `Microsoft.Owin` package.
          var context = new OwinContext(owinEnvironment);
  
          // Allow all authenticated users to see the Dashboard (potentially dangerous).
          return context.Authentication.User.Identity.IsAuthenticated;
      }
  }
  </code></pre>
  
  <p>How do I restrict to only Admin roles i.e what is the syntax?</p>