aemarcoWebTools 2.0.13

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

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

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
5.0.2 85 9/16/2024
4.0.9 71 9/15/2024
4.0.8 52 9/8/2024
4.0.7 44 9/8/2024
4.0.6 57 9/8/2024
4.0.5 50 9/8/2024
4.0.2 73 9/8/2024
3.1.27 61 9/8/2024
3.1.26 71 9/7/2024
3.1.25 66 9/7/2024
3.1.24 69 9/7/2024
3.1.23 63 9/1/2024
3.1.22 73 9/1/2024
3.1.21 103 6/16/2024
3.1.20 81 5/31/2024
3.1.19 93 5/20/2024
3.1.18 73 5/10/2024
3.1.17 108 4/12/2024
3.1.16 97 4/4/2024
3.1.15 78 3/22/2024
3.1.11 91 3/19/2024
3.1.10 97 2/16/2024
3.1.7 94 2/11/2024
3.1.6 86 2/11/2024
3.1.5 81 2/11/2024
3.1.4 85 2/11/2024
3.0.18 159 1/29/2024
3.0.17 81 1/29/2024
3.0.16 88 1/27/2024
3.0.15 71 1/27/2024
3.0.8 72 1/27/2024
3.0.7 127 1/13/2024
2.0.18 129 1/4/2024
2.0.17 121 1/1/2024
2.0.16 109 12/27/2023
2.0.15 97 12/26/2023
2.0.14 106 12/26/2023
2.0.13 106 12/25/2023
2.0.11 108 12/23/2023
2.0.10 109 12/16/2023
2.0.9 104 12/15/2023
2.0.8 112 12/14/2023
2.0.7 102 12/13/2023
2.0.5 102 12/11/2023
2.0.4 101 12/11/2023
2.0.2 177 12/10/2023
1.9.2 107 12/10/2023
1.8.4 111 12/10/2023
1.8.3 114 12/9/2023
1.8.2 102 12/9/2023
1.1.28 129 11/27/2023
1.1.27 110 11/26/2023
1.1.26 117 11/18/2023
1.1.25 104 11/17/2023
1.1.24 135 10/30/2023
1.1.23 110 10/29/2023
1.1.22 120 10/22/2023
1.1.21 107 10/17/2023
1.1.20 139 9/16/2023
1.1.19 153 8/27/2023
1.1.18 123 7/31/2023
1.1.17 152 7/16/2023
1.1.16 147 7/9/2023
1.1.15 139 7/8/2023
1.1.14 137 7/5/2023
1.1.13 148 6/29/2023
1.1.12 160 5/1/2023
1.1.11 249 3/5/2023
1.1.10 243 3/3/2023
1.1.9 239 2/28/2023
1.1.7 243 2/26/2023
1.1.6 252 2/26/2023
1.1.5 239 2/26/2023
1.1.3 247 2/25/2023
1.1.0 246 2/25/2023
1.0.108 279 1/23/2023
1.0.107 300 1/13/2023
1.0.106 301 1/13/2023
1.0.105 297 1/12/2023
1.0.104 310 1/11/2023
1.0.103 318 1/7/2023
1.0.102 295 1/6/2023
1.0.101 297 1/6/2023
1.0.100 300 1/2/2023
1.0.99 289 12/30/2022
1.0.98 306 12/28/2022
1.0.97 290 12/28/2022
1.0.95 302 12/3/2022
1.0.94 323 11/24/2022
1.0.93 359 11/1/2022
1.0.92 382 10/30/2022
1.0.91 392 10/27/2022
1.0.90 388 10/26/2022
1.0.89 383 10/26/2022
1.0.88 401 10/23/2022
1.0.86 408 10/18/2022
1.0.85 379 10/18/2022
1.0.84 394 10/16/2022
1.0.83 402 10/15/2022
1.0.82 401 10/15/2022
1.0.81 395 10/10/2022
1.0.80 394 10/6/2022
1.0.79 396 10/6/2022
1.0.78 446 10/2/2022
1.0.77 457 9/27/2022
1.0.76 481 9/25/2022
1.0.75 480 9/23/2022
1.0.74 477 9/23/2022
1.0.73 454 9/10/2022
1.0.72 534 6/29/2022
1.0.71 526 5/29/2022
1.0.70 508 5/29/2022
1.0.69 514 5/28/2022
1.0.68 527 5/24/2022
1.0.66 546 5/1/2022
1.0.64 601 4/17/2022
1.0.63 563 4/15/2022
1.0.62 587 3/24/2022
1.0.61 585 3/20/2022
1.0.55 566 3/13/2022
1.0.54 570 3/11/2022
1.0.53 576 3/11/2022
1.0.52 576 3/11/2022
1.0.51 601 2/26/2022
1.0.50 799 2/9/2022
1.0.49 818 2/1/2022
1.0.48 824 1/25/2022
1.0.47 344 11/29/2021
1.0.46 316 11/27/2021
1.0.45 456 10/12/2021
1.0.44 406 8/23/2021
1.0.43 490 8/10/2021
1.0.42 359 7/21/2021
1.0.41 382 4/4/2021
1.0.40 380 4/4/2021
1.0.39 359 3/29/2021
1.0.38 443 3/27/2021
1.0.37 391 3/15/2021
1.0.36 428 3/14/2021