Nedo.AspNet.Authentication.Abstractions 2.0.6

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

Nedo.AspNet.Authentication.Abstractions

Zero-dependency contracts for the Nedo.AspNet.Authentication modular auth platform. Reference this from your own libraries when you want to depend on the auth contracts (IAuthContext, IAuthEventSink, AuthMode, AuthEvent, AuthEventTypes) without pulling in ASP.NET Core itself.

Install

dotnet add package Nedo.AspNet.Authentication.Abstractions

What's in here

Type Purpose
IAuthContext DI-injectable identity surface — UserId, Email, IsAuthenticated, ExpiresAt, etc. Replaces direct HttpContext.User access.
AuthMode Anonymous / Optional / Required — drives the middleware policy decision.
IAuthEventSink Audit-log + side-channel hook (login.success, password.reset_requested, magic_link.requested, passkey.registered, …). Default impl is a no-op; host implements to ship events to Serilog / SIEM / OpenTelemetry / email delivery.
AuthEvent + AuthEventTypes Event envelope + the well-known type constants.
NoopAuthEventSink Default registration.

The full sink event-type list is in docs/local/internals.md on the repo.

Why a separate package

Domain libraries that want to assert "the caller must be authenticated and own this resource" can depend on IAuthContext from this package without taking on the full HTTP-stack dependency. Tests can mock IAuthContext without spinning up a WebApplicationFactory.

Package Role
Nedo.AspNet.Authentication Provides AuthContext + middleware that populate the IAuthContext from JWT bearer claims.
Nedo.AspNet.Authentication.Local Username/password / magic-link / refresh-token sign-in that emits sink events.

License

MIT — see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Nedo.AspNet.Authentication.Abstractions:

Package Downloads
Nedo.AspNet.Authentication

ASP.NET Core authentication engine — JWT Bearer, middleware, DI wiring, and authorization.

Nedo.AspNet.Authentication.Claims

Claims transformation and normalization pipeline for Nedo authentication.

Nedo.AspNet.Authentication.MultiTenant

Multi-tenant authentication support — tenant resolution and isolation strategies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.9 369 5/11/2026
2.0.8 343 5/6/2026
2.0.7 347 5/5/2026
2.0.6 350 5/5/2026
2.0.4 349 5/4/2026
2.0.3 356 5/4/2026
2.0.2 346 5/2/2026
2.0.1 335 5/2/2026
2.0.0 320 5/1/2026