aemarcoWebTools 3.1.17

dotnet add package aemarcoWebTools --version 3.1.17
NuGet\Install-Package aemarcoWebTools -Version 3.1.17
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="aemarcoWebTools" Version="3.1.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add aemarcoWebTools --version 3.1.17
#r "nuget: aemarcoWebTools, 3.1.17"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install aemarcoWebTools as a Cake Addin
#addin nuget:?package=aemarcoWebTools&version=3.1.17

// Install aemarcoWebTools as a Cake Tool
#tool nuget:?package=aemarcoWebTools&version=3.1.17

aemarcoWebTools

<a href=https://www.nuget.org/packages/aemarcoWebTools><img src="https://buildstats.info/nuget/aemarcoWebTools"></a>

Table of Contents

  1. Authorization
  2. Filter
  3. Middleware

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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.17 86 4/12/2024
3.1.16 86 4/4/2024
3.1.15 68 3/22/2024
3.1.11 81 3/19/2024
3.1.10 85 2/16/2024
3.1.7 85 2/11/2024
3.1.6 76 2/11/2024
3.1.5 70 2/11/2024
3.1.4 74 2/11/2024
3.0.18 114 1/29/2024
3.0.17 72 1/29/2024
3.0.16 78 1/27/2024
3.0.15 62 1/27/2024
3.0.8 61 1/27/2024
3.0.7 116 1/13/2024
2.0.18 119 1/4/2024
2.0.17 110 1/1/2024
2.0.16 100 12/27/2023
2.0.15 88 12/26/2023
2.0.14 99 12/26/2023
2.0.13 100 12/25/2023
2.0.11 102 12/23/2023
2.0.10 105 12/16/2023
2.0.9 97 12/15/2023
2.0.8 106 12/14/2023
2.0.7 94 12/13/2023
2.0.5 94 12/11/2023
2.0.4 94 12/11/2023
2.0.2 170 12/10/2023
1.9.2 99 12/10/2023
1.8.4 103 12/10/2023
1.8.3 108 12/9/2023
1.8.2 96 12/9/2023
1.1.28 122 11/27/2023
1.1.27 104 11/26/2023
1.1.26 111 11/18/2023
1.1.25 98 11/17/2023
1.1.24 126 10/30/2023
1.1.23 102 10/29/2023
1.1.22 112 10/22/2023
1.1.21 99 10/17/2023
1.1.20 130 9/16/2023
1.1.19 146 8/27/2023
1.1.18 116 7/31/2023
1.1.17 145 7/16/2023
1.1.16 140 7/9/2023
1.1.15 133 7/8/2023
1.1.14 131 7/5/2023
1.1.13 141 6/29/2023
1.1.12 154 5/1/2023
1.1.11 244 3/5/2023
1.1.10 239 3/3/2023
1.1.9 233 2/28/2023
1.1.7 238 2/26/2023
1.1.6 247 2/26/2023
1.1.5 234 2/26/2023
1.1.3 242 2/25/2023
1.1.0 241 2/25/2023
1.0.108 270 1/23/2023
1.0.107 292 1/13/2023
1.0.106 293 1/13/2023
1.0.105 293 1/12/2023
1.0.104 304 1/11/2023
1.0.103 309 1/7/2023
1.0.102 286 1/6/2023
1.0.101 288 1/6/2023
1.0.100 291 1/2/2023
1.0.99 282 12/30/2022
1.0.98 300 12/28/2022
1.0.97 283 12/28/2022
1.0.95 296 12/3/2022
1.0.94 315 11/24/2022
1.0.93 355 11/1/2022
1.0.92 374 10/30/2022
1.0.91 387 10/27/2022
1.0.90 381 10/26/2022
1.0.89 375 10/26/2022
1.0.88 394 10/23/2022
1.0.86 400 10/18/2022
1.0.85 372 10/18/2022
1.0.84 387 10/16/2022
1.0.83 395 10/15/2022
1.0.82 394 10/15/2022
1.0.81 391 10/10/2022
1.0.80 386 10/6/2022
1.0.79 389 10/6/2022
1.0.78 438 10/2/2022
1.0.77 448 9/27/2022
1.0.76 473 9/25/2022
1.0.75 473 9/23/2022
1.0.74 468 9/23/2022
1.0.73 449 9/10/2022
1.0.72 525 6/29/2022
1.0.71 519 5/29/2022
1.0.70 504 5/29/2022
1.0.69 508 5/28/2022
1.0.68 520 5/24/2022
1.0.66 542 5/1/2022
1.0.64 596 4/17/2022
1.0.63 557 4/15/2022
1.0.62 581 3/24/2022
1.0.61 577 3/20/2022
1.0.55 561 3/13/2022
1.0.54 565 3/11/2022
1.0.53 571 3/11/2022
1.0.52 571 3/11/2022
1.0.51 595 2/26/2022
1.0.50 793 2/9/2022
1.0.49 813 2/1/2022
1.0.48 819 1/25/2022
1.0.47 340 11/29/2021
1.0.46 313 11/27/2021
1.0.45 450 10/12/2021
1.0.44 400 8/23/2021
1.0.43 482 8/10/2021
1.0.42 352 7/21/2021
1.0.41 376 4/4/2021
1.0.40 375 4/4/2021
1.0.39 353 3/29/2021
1.0.38 439 3/27/2021
1.0.37 386 3/15/2021
1.0.36 424 3/14/2021