Skip to content

Instantly share code, notes, and snippets.

@ydang204
ydang204 / HFDashboardAuthFilter.cs
Created November 14, 2019 03:25 — forked from ndc/HFDashboardAuthFilter.cs
Hangfire dashboard authorization filter using basic authentication and relying on browser support to allow user to input username and password.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hangfire.Annotations;
using Hangfire.Dashboard;
using Microsoft.AspNetCore.Http;
namespace MyApp.ScheduledTask
{