Soenneker.Hangfire.BasicAuthentication 4.0.2112

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Hangfire.BasicAuthentication --version 4.0.2112
                    
NuGet\Install-Package Soenneker.Hangfire.BasicAuthentication -Version 4.0.2112
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Hangfire.BasicAuthentication" Version="4.0.2112" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Hangfire.BasicAuthentication" Version="4.0.2112" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Hangfire.BasicAuthentication" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Hangfire.BasicAuthentication --version 4.0.2112
                    
#r "nuget: Soenneker.Hangfire.BasicAuthentication, 4.0.2112"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Hangfire.BasicAuthentication@4.0.2112
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Hangfire.BasicAuthentication&version=4.0.2112
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Hangfire.BasicAuthentication&version=4.0.2112
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Hangfire.BasicAuthentication

Represents the hangfire authorize registrar.

Install

dotnet add package Soenneker.Hangfire.BasicAuthentication

Quick start

using Soenneker.Hangfire.BasicAuthentication.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
var result = services.AddHangfireBasicAuth();

Adds hangfire basic auth.

What you get

  • HangfireAuthorizeRegistrar — Represents the hangfire authorize registrar.
  • HangfireAuthorizationFilter — Needed to enable non-local traffic to flow into the hangfire auth middleware.
  • HangfireBasicAuthMiddleware — Basic Auth gate for /hangfire (or configured path), delegating parsing + verification to IBasicAuthValidator. Keeps password only as a PHC record (no plaintext in config).

API at a glance

API What it does Result / important behavior
HangfireAuthorizeRegistrar.UseHangfireAuthorized(builder) Adds simple basic authorization to the Hangfire instance - Hangfire:Username, Hangfire:Password config values necessary. The same builder instance, so additional classes or variants can be chained.
HangfireAuthorizationFilter.Authorize(dashboardContext) Determines whether the current request may access the Hangfire dashboard. true if dashboard access is allowed; otherwise, false.
HangfireBasicAuthMiddleware.InvokeAsync(context) Invokes async. A task that completes when the invoke async operation is complete.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.2135 0 9/7/2026
4.0.2134 0 9/7/2026
4.0.2133 0 9/7/2026
4.0.2132 42 9/5/2026
4.0.2131 39 9/5/2026
4.0.2130 43 9/4/2026
4.0.2128 45 9/4/2026
4.0.2127 43 9/4/2026
4.0.2126 42 9/4/2026
4.0.2125 41 9/4/2026
4.0.2124 73 9/1/2026
4.0.2123 80 8/31/2026
4.0.2122 81 8/31/2026
4.0.2121 85 8/31/2026
4.0.2120 81 8/31/2026
4.0.2119 77 8/31/2026
4.0.2118 91 8/31/2026
4.0.2117 85 8/30/2026
4.0.2116 88 8/30/2026
4.0.2112 87 8/30/2026
Loading failed

Update dependency Soenneker.Validators.BasicAuth to 4.0.203 (#2885)