我正在使用hangfire和Hangfire.Dashboard.Authorization配置对hangfire控制台的访问权限:
public void Configure(IAppBuilder app)
{
var options = new DashboardOptions
{
AuthorizationFilters = new []
{
new AuthorizationFilter { Users = "admin"},
new ClaimsBasedAuthorizationFilter("name", "value")
}
};
app.UseHangfireDashboard("/myjobs", options);
}
我想向所有经过身份验证的用户提供对dasboard的访问权限,但只允许查看属于当前用户的作业(由她/他启动)。是否有可能以某种方式过滤当前用户的仪表板访问和结果?