Skip to content

Instantly share code, notes, and snippets.

@meriturva
Created June 9, 2019 17:16
Show Gist options
  • Save meriturva/b1c4a84a9804f0b2ffb1f0c993d9da8e to your computer and use it in GitHub Desktop.
Save meriturva/b1c4a84a9804f0b2ffb1f0c993d9da8e to your computer and use it in GitHub Desktop.
Configure Hangfire Dashboard Jwt Authorization Filter
var options = new DashboardOptions
{
Authorization = new IDashboardAuthorizationFilter[]
{
new HangfireDashboardJwtAuthorizationFilter(this.tokenValidationParameters, "Admin")
}
};
app.UseHangfireDashboard("/main/admin/hangfire", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment