aemarcoWebTools 8.1.2

dotnet add package aemarcoWebTools --version 8.1.2                
NuGet\Install-Package aemarcoWebTools -Version 8.1.2                
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="8.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add aemarcoWebTools --version 8.1.2                
#r "nuget: aemarcoWebTools, 8.1.2"                
#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=8.1.2

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

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
8.1.2 40 12/26/2024
8.0.8 66 12/23/2024
8.0.7 66 12/23/2024
8.0.6 74 12/22/2024
8.0.5 70 12/21/2024
8.0.4 87 11/17/2024
8.0.3 116 11/17/2024
5.0.21 82 11/16/2024
5.0.20 88 10/20/2024
5.0.19 84 10/19/2024
5.0.18 104 10/19/2024
5.0.17 85 10/13/2024
5.0.16 87 10/12/2024
5.0.6 78 10/6/2024
5.0.5 88 10/2/2024
5.0.4 125 10/1/2024
5.0.3 89 9/22/2024
5.0.2 175 9/16/2024
4.0.9 107 9/15/2024
4.0.8 89 9/8/2024
4.0.7 78 9/8/2024
4.0.6 86 9/8/2024
4.0.5 72 9/8/2024
4.0.2 108 9/8/2024
3.1.27 95 9/8/2024
3.1.26 105 9/7/2024
3.1.25 103 9/7/2024
3.1.24 102 9/7/2024
3.1.23 95 9/1/2024
3.1.22 103 9/1/2024
3.1.21 128 6/16/2024
3.1.20 103 5/31/2024
3.1.19 117 5/20/2024
3.1.18 93 5/10/2024
3.1.17 127 4/12/2024
3.1.16 117 4/4/2024
3.1.15 104 3/22/2024
3.1.11 110 3/19/2024
3.1.10 119 2/16/2024
3.1.7 130 2/11/2024
3.1.6 119 2/11/2024
3.1.5 118 2/11/2024
3.1.4 122 2/11/2024
3.0.18 175 1/29/2024
3.0.17 101 1/29/2024
3.0.16 104 1/27/2024
3.0.15 80 1/27/2024
3.0.8 104 1/27/2024
3.0.7 143 1/13/2024
2.0.18 147 1/4/2024
2.0.17 137 1/1/2024
2.0.16 126 12/27/2023
2.0.15 114 12/26/2023
2.0.14 135 12/26/2023
2.0.13 124 12/25/2023
2.0.11 127 12/23/2023
2.0.10 129 12/16/2023
2.0.9 120 12/15/2023
2.0.8 131 12/14/2023
2.0.7 118 12/13/2023
2.0.5 118 12/11/2023
2.0.4 118 12/11/2023
2.0.2 194 12/10/2023
1.9.2 123 12/10/2023
1.8.4 127 12/10/2023
1.8.3 133 12/9/2023
1.8.2 122 12/9/2023
1.1.28 148 11/27/2023
1.1.27 131 11/26/2023
1.1.26 134 11/18/2023
1.1.25 126 11/17/2023
1.1.24 145 10/30/2023
1.1.23 129 10/29/2023
1.1.22 141 10/22/2023
1.1.21 124 10/17/2023
1.1.20 156 9/16/2023
1.1.19 172 8/27/2023
1.1.18 142 7/31/2023
1.1.17 169 7/16/2023
1.1.16 164 7/9/2023
1.1.15 158 7/8/2023
1.1.14 156 7/5/2023
1.1.13 167 6/29/2023
1.1.12 177 5/1/2023
1.1.11 266 3/5/2023
1.1.10 260 3/3/2023
1.1.9 259 2/28/2023
1.1.7 262 2/26/2023
1.1.6 269 2/26/2023
1.1.5 256 2/26/2023
1.1.3 264 2/25/2023
1.1.0 264 2/25/2023
1.0.108 296 1/23/2023
1.0.107 319 1/13/2023
1.0.106 320 1/13/2023
1.0.105 314 1/12/2023
1.0.104 327 1/11/2023
1.0.103 337 1/7/2023
1.0.102 312 1/6/2023
1.0.101 316 1/6/2023
1.0.100 319 1/2/2023
1.0.99 310 12/30/2022
1.0.98 323 12/28/2022
1.0.97 307 12/28/2022
1.0.95 321 12/3/2022
1.0.94 346 11/24/2022
1.0.93 380 11/1/2022
1.0.92 403 10/30/2022
1.0.91 411 10/27/2022
1.0.90 409 10/26/2022
1.0.89 402 10/26/2022
1.0.88 423 10/23/2022
1.0.86 427 10/18/2022
1.0.85 402 10/18/2022
1.0.84 415 10/16/2022
1.0.83 414 10/15/2022
1.0.82 422 10/15/2022
1.0.81 421 10/10/2022
1.0.80 413 10/6/2022
1.0.79 406 10/6/2022
1.0.78 464 10/2/2022
1.0.77 483 9/27/2022
1.0.76 501 9/25/2022
1.0.75 502 9/23/2022
1.0.74 497 9/23/2022
1.0.73 480 9/10/2022
1.0.72 554 6/29/2022
1.0.71 536 5/29/2022
1.0.70 536 5/29/2022
1.0.69 534 5/28/2022
1.0.68 537 5/24/2022
1.0.66 570 5/1/2022
1.0.64 621 4/17/2022
1.0.63 583 4/15/2022
1.0.62 609 3/24/2022
1.0.61 597 3/20/2022
1.0.55 588 3/13/2022
1.0.54 590 3/11/2022
1.0.53 598 3/11/2022
1.0.52 596 3/11/2022
1.0.51 631 2/26/2022
1.0.50 826 2/9/2022
1.0.49 838 2/1/2022
1.0.48 846 1/25/2022
1.0.47 374 11/29/2021
1.0.46 338 11/27/2021
1.0.45 476 10/12/2021
1.0.44 426 8/23/2021
1.0.43 508 8/10/2021
1.0.42 381 7/21/2021
1.0.41 402 4/4/2021
1.0.40 400 4/4/2021
1.0.39 379 3/29/2021
1.0.38 465 3/27/2021
1.0.37 411 3/15/2021
1.0.36 449 3/14/2021