Nedo.AspNet.Authentication.Abstractions
2.0.9
dotnet add package Nedo.AspNet.Authentication.Abstractions --version 2.0.9
NuGet\Install-Package Nedo.AspNet.Authentication.Abstractions -Version 2.0.9
<PackageReference Include="Nedo.AspNet.Authentication.Abstractions" Version="2.0.9" />
<PackageVersion Include="Nedo.AspNet.Authentication.Abstractions" Version="2.0.9" />
<PackageReference Include="Nedo.AspNet.Authentication.Abstractions" />
paket add Nedo.AspNet.Authentication.Abstractions --version 2.0.9
#r "nuget: Nedo.AspNet.Authentication.Abstractions, 2.0.9"
#:package Nedo.AspNet.Authentication.Abstractions@2.0.9
#addin nuget:?package=Nedo.AspNet.Authentication.Abstractions&version=2.0.9
#tool nuget:?package=Nedo.AspNet.Authentication.Abstractions&version=2.0.9
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.
Related
| 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 | Versions 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. |
-
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.