Skip to content

Instantly share code, notes, and snippets.

View mebius4789's full-sized avatar

Linix mebius4789

View GitHub Profile
@mebius4789
mebius4789 / HFDashboardAuthFilter.cs
Created November 27, 2018 12:03 — 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
{