aemarcoWebTools 10.0.17
dotnet add package aemarcoWebTools --version 10.0.17
NuGet\Install-Package aemarcoWebTools -Version 10.0.17
<PackageReference Include="aemarcoWebTools" Version="10.0.17" />
<PackageVersion Include="aemarcoWebTools" Version="10.0.17" />
<PackageReference Include="aemarcoWebTools" />
paket add aemarcoWebTools --version 10.0.17
#r "nuget: aemarcoWebTools, 10.0.17"
#:package aemarcoWebTools@10.0.17
#addin nuget:?package=aemarcoWebTools&version=10.0.17
#tool nuget:?package=aemarcoWebTools&version=10.0.17
aemarcoWebTools
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 | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- aemarcoToolbox (>= 10.0.17)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.6)
- Microsoft.AspNetCore.Authentication.OpenIdConnect (>= 10.0.6)
- Serilog.AspNetCore (>= 10.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 |
|---|---|---|
| 10.0.17 | 107 | 4/18/2026 |
| 10.0.15 | 99 | 4/18/2026 |
| 10.0.11 | 92 | 4/18/2026 |
| 9.1.7 | 122 | 2/15/2026 |
| 9.0.37 | 285 | 9/14/2025 |
| 9.0.33 | 201 | 9/13/2025 |
| 9.0.31 | 200 | 9/13/2025 |
| 9.0.30 | 205 | 9/13/2025 |
| 9.0.6 | 198 | 9/13/2025 |
| 9.0.5 | 198 | 9/13/2025 |
| 9.0.4 | 202 | 9/13/2025 |
| 9.0.3 | 208 | 9/13/2025 |
| 8.4.13 | 225 | 9/11/2025 |
| 8.4.12 | 258 | 8/30/2025 |
| 8.4.11 | 307 | 8/6/2025 |
| 8.4.10 | 140 | 8/2/2025 |
| 8.4.9 | 116 | 8/1/2025 |
| 8.4.6 | 203 | 7/27/2025 |
| 8.4.5 | 238 | 6/20/2025 |
| 8.4.4 | 181 | 5/3/2025 |