aemarcoWebTools 1.1.20

There is a newer version of this package available.
See the version list below for details.
dotnet add package aemarcoWebTools --version 1.1.20
NuGet\Install-Package aemarcoWebTools -Version 1.1.20
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="1.1.20" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add aemarcoWebTools --version 1.1.20
#r "nuget: aemarcoWebTools, 1.1.20"
#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=1.1.20

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

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 net7.0-windows7.0 is compatible.  net8.0-windows was computed. 
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 90 4/12/2024
3.1.16 87 4/4/2024
3.1.15 69 3/22/2024
3.1.11 82 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 112 1/1/2024
2.0.16 102 12/27/2023
2.0.15 89 12/26/2023
2.0.14 101 12/26/2023
2.0.13 102 12/25/2023
2.0.11 104 12/23/2023
2.0.10 107 12/16/2023
2.0.9 99 12/15/2023
2.0.8 108 12/14/2023
2.0.7 96 12/13/2023
2.0.5 96 12/11/2023
2.0.4 96 12/11/2023
2.0.2 172 12/10/2023
1.9.2 101 12/10/2023
1.8.4 105 12/10/2023
1.8.3 110 12/9/2023
1.8.2 98 12/9/2023
1.1.28 124 11/27/2023
1.1.27 106 11/26/2023
1.1.26 113 11/18/2023
1.1.25 100 11/17/2023
1.1.24 128 10/30/2023
1.1.23 104 10/29/2023
1.1.22 114 10/22/2023
1.1.21 101 10/17/2023
1.1.20 132 9/16/2023
1.1.19 148 8/27/2023
1.1.18 118 7/31/2023
1.1.17 147 7/16/2023
1.1.16 142 7/9/2023
1.1.15 135 7/8/2023
1.1.14 133 7/5/2023
1.1.13 143 6/29/2023
1.1.12 156 5/1/2023
1.1.11 246 3/5/2023
1.1.10 241 3/3/2023
1.1.9 235 2/28/2023
1.1.7 240 2/26/2023
1.1.6 249 2/26/2023
1.1.5 236 2/26/2023
1.1.3 244 2/25/2023
1.1.0 243 2/25/2023
1.0.108 272 1/23/2023
1.0.107 297 1/13/2023
1.0.106 298 1/13/2023
1.0.105 295 1/12/2023
1.0.104 306 1/11/2023
1.0.103 314 1/7/2023
1.0.102 291 1/6/2023
1.0.101 293 1/6/2023
1.0.100 296 1/2/2023
1.0.99 284 12/30/2022
1.0.98 302 12/28/2022
1.0.97 285 12/28/2022
1.0.95 298 12/3/2022
1.0.94 317 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 580 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