Created
June 9, 2019 17:16
-
-
Save meriturva/b1c4a84a9804f0b2ffb1f0c993d9da8e to your computer and use it in GitHub Desktop.
Configure Hangfire Dashboard Jwt Authorization Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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