Rwx.AspNet
0.3.1
dotnet add package Rwx.AspNet --version 0.3.1
NuGet\Install-Package Rwx.AspNet -Version 0.3.1
<PackageReference Include="Rwx.AspNet" Version="0.3.1" />
<PackageVersion Include="Rwx.AspNet" Version="0.3.1" />
<PackageReference Include="Rwx.AspNet" />
paket add Rwx.AspNet --version 0.3.1
#r "nuget: Rwx.AspNet, 0.3.1"
#:package Rwx.AspNet@0.3.1
#addin nuget:?package=Rwx.AspNet&version=0.3.1
#tool nuget:?package=Rwx.AspNet&version=0.3.1
Rwx.AspNet
ASP.NET Core integration for Rwx current-user access and consistent RFC 7807 error responses.
Install
dotnet add package Rwx.AspNet --version 0.1.0
Quick start
using Rwx.AspNet;
builder.Services.AddRwxAspNetSecurity();
builder.Services.AddRwxProblemDetails();
WebApplication app = builder.Build();
app.UseExceptionHandler();
AddRwxAspNetSecurity() uses the active HTTP request principal as the default for ICurrentUser; ICurrentPrincipalAccessor.Change(...) overrides still take precedence. It is also available as the RwxAspNetSecurityModule for module-based applications.
AddRwxProblemDetails() registers RwxProblemDetailsExceptionHandler; UseExceptionHandler() is required to activate it. Unhandled endpoint exceptions become 500 ProblemDetails responses.
Boundaries
This package belongs only in an ASP.NET Core host. Endpoints translate HTTP input to application commands/queries and translate results to HTTP responses; they must not contain domain rules or broker/persistence orchestration.
| Product | Versions 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. |
-
net10.0
- Rwx.Domain (>= 0.3.1)
- Rwx.Security (>= 0.3.1)
- Rwx.UnitOfWork (>= 0.3.1)
- Scrutor (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.