aemarcoWebTools 3.1.21
dotnet add package aemarcoWebTools --version 3.1.21
NuGet\Install-Package aemarcoWebTools -Version 3.1.21
<PackageReference Include="aemarcoWebTools" Version="3.1.21" />
paket add aemarcoWebTools --version 3.1.21
#r "nuget: aemarcoWebTools, 3.1.21"
// Install aemarcoWebTools as a Cake Addin
#addin nuget:?package=aemarcoWebTools&version=3.1.21
// Install aemarcoWebTools as a Cake Tool
#tool nuget:?package=aemarcoWebTools&version=3.1.21
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. |
-
net8.0-windows7.0
- aemarcoToolbox (>= 3.1.21)
- aemarcoToolboxAppOptions (>= 3.1.21)
- Serilog.AspNetCore (>= 8.0.1)
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 |
---|---|---|
3.1.21 | 79 | 6/16/2024 |
3.1.20 | 74 | 5/31/2024 |
3.1.19 | 86 | 5/20/2024 |
3.1.18 | 66 | 5/10/2024 |
3.1.17 | 102 | 4/12/2024 |
3.1.16 | 93 | 4/4/2024 |
3.1.15 | 73 | 3/22/2024 |
3.1.11 | 86 | 3/19/2024 |
3.1.10 | 89 | 2/16/2024 |
3.1.7 | 88 | 2/11/2024 |
3.1.6 | 79 | 2/11/2024 |
3.1.5 | 73 | 2/11/2024 |
3.1.4 | 77 | 2/11/2024 |
3.0.18 | 128 | 1/29/2024 |
3.0.17 | 75 | 1/29/2024 |
3.0.16 | 81 | 1/27/2024 |
3.0.15 | 65 | 1/27/2024 |
3.0.8 | 64 | 1/27/2024 |
3.0.7 | 119 | 1/13/2024 |
2.0.18 | 123 | 1/4/2024 |
2.0.17 | 113 | 1/1/2024 |
2.0.16 | 105 | 12/27/2023 |
2.0.15 | 92 | 12/26/2023 |
2.0.14 | 102 | 12/26/2023 |
2.0.13 | 103 | 12/25/2023 |
2.0.11 | 105 | 12/23/2023 |
2.0.10 | 108 | 12/16/2023 |
2.0.9 | 100 | 12/15/2023 |
2.0.8 | 109 | 12/14/2023 |
2.0.7 | 97 | 12/13/2023 |
2.0.5 | 97 | 12/11/2023 |
2.0.4 | 97 | 12/11/2023 |
2.0.2 | 174 | 12/10/2023 |
1.9.2 | 103 | 12/10/2023 |
1.8.4 | 107 | 12/10/2023 |
1.8.3 | 111 | 12/9/2023 |
1.8.2 | 99 | 12/9/2023 |
1.1.28 | 126 | 11/27/2023 |
1.1.27 | 107 | 11/26/2023 |
1.1.26 | 114 | 11/18/2023 |
1.1.25 | 101 | 11/17/2023 |
1.1.24 | 130 | 10/30/2023 |
1.1.23 | 105 | 10/29/2023 |
1.1.22 | 115 | 10/22/2023 |
1.1.21 | 102 | 10/17/2023 |
1.1.20 | 134 | 9/16/2023 |
1.1.19 | 151 | 8/27/2023 |
1.1.18 | 120 | 7/31/2023 |
1.1.17 | 148 | 7/16/2023 |
1.1.16 | 143 | 7/9/2023 |
1.1.15 | 136 | 7/8/2023 |
1.1.14 | 134 | 7/5/2023 |
1.1.13 | 145 | 6/29/2023 |
1.1.12 | 158 | 5/1/2023 |
1.1.11 | 248 | 3/5/2023 |
1.1.10 | 242 | 3/3/2023 |
1.1.9 | 237 | 2/28/2023 |
1.1.7 | 241 | 2/26/2023 |
1.1.6 | 250 | 2/26/2023 |
1.1.5 | 237 | 2/26/2023 |
1.1.3 | 245 | 2/25/2023 |
1.1.0 | 244 | 2/25/2023 |
1.0.108 | 277 | 1/23/2023 |
1.0.107 | 298 | 1/13/2023 |
1.0.106 | 299 | 1/13/2023 |
1.0.105 | 296 | 1/12/2023 |
1.0.104 | 307 | 1/11/2023 |
1.0.103 | 315 | 1/7/2023 |
1.0.102 | 292 | 1/6/2023 |
1.0.101 | 294 | 1/6/2023 |
1.0.100 | 297 | 1/2/2023 |
1.0.99 | 286 | 12/30/2022 |
1.0.98 | 303 | 12/28/2022 |
1.0.97 | 286 | 12/28/2022 |
1.0.95 | 299 | 12/3/2022 |
1.0.94 | 320 | 11/24/2022 |
1.0.93 | 356 | 11/1/2022 |
1.0.92 | 379 | 10/30/2022 |
1.0.91 | 388 | 10/27/2022 |
1.0.90 | 385 | 10/26/2022 |
1.0.89 | 379 | 10/26/2022 |
1.0.88 | 398 | 10/23/2022 |
1.0.86 | 404 | 10/18/2022 |
1.0.85 | 376 | 10/18/2022 |
1.0.84 | 391 | 10/16/2022 |
1.0.83 | 399 | 10/15/2022 |
1.0.82 | 398 | 10/15/2022 |
1.0.81 | 392 | 10/10/2022 |
1.0.80 | 390 | 10/6/2022 |
1.0.79 | 393 | 10/6/2022 |
1.0.78 | 442 | 10/2/2022 |
1.0.77 | 453 | 9/27/2022 |
1.0.76 | 477 | 9/25/2022 |
1.0.75 | 477 | 9/23/2022 |
1.0.74 | 472 | 9/23/2022 |
1.0.73 | 450 | 9/10/2022 |
1.0.72 | 528 | 6/29/2022 |
1.0.71 | 521 | 5/29/2022 |
1.0.70 | 505 | 5/29/2022 |
1.0.69 | 509 | 5/28/2022 |
1.0.68 | 521 | 5/24/2022 |
1.0.66 | 543 | 5/1/2022 |
1.0.64 | 598 | 4/17/2022 |
1.0.63 | 558 | 4/15/2022 |
1.0.62 | 583 | 3/24/2022 |
1.0.61 | 581 | 3/20/2022 |
1.0.55 | 562 | 3/13/2022 |
1.0.54 | 566 | 3/11/2022 |
1.0.53 | 572 | 3/11/2022 |
1.0.52 | 572 | 3/11/2022 |
1.0.51 | 597 | 2/26/2022 |
1.0.50 | 794 | 2/9/2022 |
1.0.49 | 814 | 2/1/2022 |
1.0.48 | 822 | 1/25/2022 |
1.0.47 | 342 | 11/29/2021 |
1.0.46 | 314 | 11/27/2021 |
1.0.45 | 452 | 10/12/2021 |
1.0.44 | 402 | 8/23/2021 |
1.0.43 | 483 | 8/10/2021 |
1.0.42 | 354 | 7/21/2021 |
1.0.41 | 378 | 4/4/2021 |
1.0.40 | 376 | 4/4/2021 |
1.0.39 | 355 | 3/29/2021 |
1.0.38 | 440 | 3/27/2021 |
1.0.37 | 387 | 3/15/2021 |
1.0.36 | 425 | 3/14/2021 |