aemarcoWebTools 9.1.7
dotnet add package aemarcoWebTools --version 9.1.7
NuGet\Install-Package aemarcoWebTools -Version 9.1.7
<PackageReference Include="aemarcoWebTools" Version="9.1.7" />
<PackageVersion Include="aemarcoWebTools" Version="9.1.7" />
<PackageReference Include="aemarcoWebTools" />
paket add aemarcoWebTools --version 9.1.7
#r "nuget: aemarcoWebTools, 9.1.7"
#:package aemarcoWebTools@9.1.7
#addin nuget:?package=aemarcoWebTools&version=9.1.7
#tool nuget:?package=aemarcoWebTools&version=9.1.7
aemarcoWebTools
<a href=https://www.nuget.org/packages/aemarcoWebTools><img src="https://buildstats.info/nuget/aemarcoWebTools"></a>
Table of Contents
Authorization
Adds policies with given names, which ensure LAN access only.
services.AddLanIpAddressPolicy("lanOnly");
Adds a policy, which requires client_id with one of the client id´s
services.AddAllowedClientsPolicy("clientB", "clientB");
Policy documentation can be found at https://docs.microsoft.com/en-us/aspnet/core/security/authorization/policies
Great read around DefaultPolicy and FallbackPolicy https://scottsauber.com/2020/01/20/globally-require-authenticated-users-by-default-using-fallback-policies-in-asp-net-core
Read about Policy Conventions https://andrewlock.net/setting-global-authorization-policies-using-the-defaultpolicy-and-the-fallbackpolicy-in-aspnet-core-3
Filter
Add´s a filter, which only calls the action when the ModelState is valid
services.AddControllers(options =>
{
options.Filters.Add(new ValidationFilter());
});
Middleware
Adds a middleware, which moves an access_token provided as query parameter, to an Authorization heder for a Bearer.
app.UseBearerToHeaderMiddleware(); //move bearer from url to header before routing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- aemarcoToolbox (>= 9.1.7)
- Serilog.AspNetCore (>= 9.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.7 | 27 | 2/15/2026 |
| 9.0.37 | 256 | 9/14/2025 |
| 9.0.33 | 172 | 9/13/2025 |
| 9.0.31 | 176 | 9/13/2025 |
| 9.0.30 | 180 | 9/13/2025 |
| 9.0.6 | 172 | 9/13/2025 |
| 9.0.5 | 172 | 9/13/2025 |
| 9.0.4 | 177 | 9/13/2025 |
| 9.0.3 | 184 | 9/13/2025 |
| 8.4.13 | 197 | 9/11/2025 |
| 8.4.12 | 233 | 8/30/2025 |
| 8.4.11 | 282 | 8/6/2025 |
| 8.4.10 | 112 | 8/2/2025 |
| 8.4.9 | 91 | 8/1/2025 |
| 8.4.6 | 177 | 7/27/2025 |
| 8.4.5 | 207 | 6/20/2025 |
| 8.4.4 | 155 | 5/3/2025 |
| 8.4.3 | 156 | 4/26/2025 |
| 8.4.2 | 190 | 4/25/2025 |
| 8.4.1 | 216 | 4/20/2025 |