Soenneker.Validators.BasicAuth 4.0.206

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Validators.BasicAuth --version 4.0.206
                    
NuGet\Install-Package Soenneker.Validators.BasicAuth -Version 4.0.206
                    
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.Validators.BasicAuth" Version="4.0.206" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Validators.BasicAuth" Version="4.0.206" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Validators.BasicAuth" />
                    
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.Validators.BasicAuth --version 4.0.206
                    
#r "nuget: Soenneker.Validators.BasicAuth, 4.0.206"
                    
#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.Validators.BasicAuth@4.0.206
                    
#: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.Validators.BasicAuth&version=4.0.206
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Validators.BasicAuth&version=4.0.206
                    
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.Validators.BasicAuth

A lightweight validation module for validating HTTP Basic Authentication credentials.

Install

dotnet add package Soenneker.Validators.BasicAuth

Quick start

using Soenneker.Validators.BasicAuth.Registrars;
using Microsoft.Extensions.DependencyInjection;

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

Adds IBasicAuthValidator as a singleton service.

What you get

  • IBasicAuthValidator — A lightweight validation module for validating HTTP Basic Authentication credentials.
  • BasicAuthValidatorRegistrar — A lightweight validation module for validating HTTP Basic Authentication credentials.

API at a glance

API What it does Result / important behavior
IBasicAuthValidator.Validate(httpContext, configuredUsername, configuredPasswordPhc) Strict validator: throws UnauthorizedAccessException on any failure. true if strict validator: throws UnauthorizedAccessException on any failure; otherwise, false.
IBasicAuthValidator.ValidateSafe(httpContext, configuredUsername, configuredPasswordPhc) Validates Basic credentials and returns false instead of throwing when credentials or configuration are invalid. true if the supplied credentials match the configured credentials; otherwise, false.
BasicAuthValidatorRegistrar.AddBasicAuthValidatorAsSingleton(services) Adds IBasicAuthValidator as a singleton service. The same service collection, so additional registrations can be chained.
BasicAuthValidatorRegistrar.AddBasicAuthValidatorAsScoped(services) Adds IBasicAuthValidator as a scoped service. The same service collection, so additional registrations can be chained.
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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Validators.BasicAuth:

Package Downloads
Soenneker.Hangfire.BasicAuthentication

Protects the Hangfire dashboard with PBKDF2-backed HTTP Basic authentication

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.230 0 9/13/2026
4.0.229 7 9/12/2026
4.0.226 82 9/9/2026
4.0.225 69 9/9/2026
4.0.224 77 9/8/2026
4.0.223 97 9/8/2026
4.0.222 97 9/8/2026
4.0.221 114 9/7/2026
4.0.220 101 9/7/2026
4.0.218 124 9/7/2026
4.0.217 113 9/5/2026
4.0.216 126 9/4/2026
4.0.215 99 9/4/2026
4.0.214 108 9/4/2026
4.0.213 133 9/1/2026
4.0.212 114 8/31/2026
4.0.211 97 8/31/2026
4.0.210 121 8/31/2026
4.0.209 92 8/31/2026
4.0.206 125 8/30/2026
Loading failed

Update dependency Soenneker.Security.Parsers.BasicAuth to 4.0.24 (#467)