aemarcoWebTools 2.0.16

There is a newer version of this package available.
See the version list below for details.
dotnet add package aemarcoWebTools --version 2.0.16
                    
NuGet\Install-Package aemarcoWebTools -Version 2.0.16
                    
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.16" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="aemarcoWebTools" Version="2.0.16" />
                    
Directory.Packages.props
<PackageReference Include="aemarcoWebTools" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add aemarcoWebTools --version 2.0.16
                    
#r "nuget: aemarcoWebTools, 2.0.16"
                    
#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.
#:package aemarcoWebTools@2.0.16
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=aemarcoWebTools&version=2.0.16
                    
Install as a Cake Addin
#tool nuget:?package=aemarcoWebTools&version=2.0.16
                    
Install as a Cake Tool

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.  net9.0-windows was computed.  net10.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
9.0.37 231 9/14/2025
9.0.33 158 9/13/2025
9.0.31 158 9/13/2025
9.0.30 158 9/13/2025
9.0.6 147 9/13/2025
9.0.5 153 9/13/2025
9.0.4 159 9/13/2025
9.0.3 156 9/13/2025
8.4.13 182 9/11/2025
8.4.12 206 8/30/2025
8.4.11 260 8/6/2025
8.4.10 88 8/2/2025
8.4.9 73 8/1/2025
8.4.6 158 7/27/2025
8.4.5 187 6/20/2025
8.4.4 143 5/3/2025
8.4.3 137 4/26/2025
8.4.2 168 4/25/2025
8.4.1 199 4/20/2025
8.3.2 208 4/20/2025
8.2.11 203 4/20/2025
8.2.10 252 4/13/2025
8.2.9 203 4/6/2025
8.2.8 187 3/30/2025
8.2.7 312 3/23/2025
8.2.6 180 3/16/2025
8.2.5 158 3/2/2025
8.2.4 179 1/26/2025
8.2.3 150 1/9/2025
8.2.2 189 1/9/2025
8.1.4 168 1/1/2025
8.1.3 189 12/31/2024
8.1.2 143 12/26/2024
8.0.8 141 12/23/2024
8.0.7 144 12/23/2024
8.0.6 150 12/22/2024
8.0.5 148 12/21/2024
8.0.4 175 11/17/2024
8.0.3 227 11/17/2024
5.0.21 149 11/16/2024
5.0.20 169 10/20/2024
5.0.19 176 10/19/2024
5.0.18 163 10/19/2024
5.0.17 160 10/13/2024
5.0.16 154 10/12/2024
5.0.6 147 10/6/2024
5.0.5 157 10/2/2024
5.0.4 191 10/1/2024
5.0.3 183 9/22/2024
5.0.2 245 9/16/2024
4.0.9 171 9/15/2024
4.0.8 147 9/8/2024
4.0.7 139 9/8/2024
4.0.6 153 9/8/2024
4.0.5 164 9/8/2024
4.0.2 189 9/8/2024
3.1.27 154 9/8/2024
3.1.26 185 9/7/2024
3.1.25 164 9/7/2024
3.1.24 206 9/7/2024
3.1.23 177 9/1/2024
3.1.22 174 9/1/2024
3.1.21 199 6/16/2024
3.1.20 166 5/31/2024
3.1.19 200 5/20/2024
3.1.18 178 5/10/2024
3.1.17 190 4/12/2024
3.1.16 181 4/4/2024
3.1.15 173 3/22/2024
3.1.11 177 3/19/2024
3.1.10 181 2/16/2024
3.1.7 189 2/11/2024
3.1.6 175 2/11/2024
3.1.5 177 2/11/2024
3.1.4 186 2/11/2024
3.0.18 238 1/29/2024
3.0.17 165 1/29/2024
3.0.16 163 1/27/2024
3.0.15 142 1/27/2024
3.0.8 169 1/27/2024
3.0.7 203 1/13/2024
2.0.18 212 1/4/2024
2.0.17 201 1/1/2024
2.0.16 181 12/27/2023
2.0.15 174 12/26/2023
2.0.14 208 12/26/2023
2.0.13 187 12/25/2023
2.0.11 189 12/23/2023
2.0.10 193 12/16/2023
2.0.9 181 12/15/2023
2.0.8 197 12/14/2023
2.0.7 193 12/13/2023
2.0.5 185 12/11/2023
2.0.4 181 12/11/2023
2.0.2 248 12/10/2023
1.9.2 218 12/10/2023
1.8.4 214 12/10/2023
1.8.3 193 12/9/2023
1.8.2 208 12/9/2023
1.1.28 211 11/27/2023
1.1.27 211 11/26/2023
1.1.26 193 11/18/2023
1.1.25 187 11/17/2023
1.1.24 198 10/30/2023
1.1.23 181 10/29/2023
1.1.22 187 10/22/2023
1.1.21 211 10/17/2023
1.1.20 215 9/16/2023
1.1.19 251 8/27/2023
1.1.18 226 7/31/2023
1.1.17 249 7/16/2023
1.1.16 249 7/9/2023
1.1.15 242 7/8/2023
1.1.14 243 7/5/2023
1.1.13 286 6/29/2023
1.1.12 280 5/1/2023
1.1.11 366 3/5/2023
1.1.10 392 3/3/2023
1.1.9 393 2/28/2023
1.1.7 386 2/26/2023
1.1.6 374 2/26/2023
1.1.5 364 2/26/2023
1.1.3 371 2/25/2023
1.1.0 364 2/25/2023
1.0.108 400 1/23/2023
1.0.107 451 1/13/2023
1.0.106 426 1/13/2023
1.0.105 420 1/12/2023
1.0.104 435 1/11/2023
1.0.103 443 1/7/2023
1.0.102 419 1/6/2023
1.0.101 420 1/6/2023
1.0.100 421 1/2/2023
1.0.99 414 12/30/2022
1.0.98 435 12/28/2022
1.0.97 417 12/28/2022
1.0.95 457 12/3/2022
1.0.94 449 11/24/2022
1.0.93 514 11/1/2022
1.0.92 534 10/30/2022
1.0.91 513 10/27/2022
1.0.90 517 10/26/2022
1.0.89 553 10/26/2022
1.0.88 529 10/23/2022
1.0.86 547 10/18/2022
1.0.85 532 10/18/2022
1.0.84 517 10/16/2022
1.0.83 544 10/15/2022
1.0.82 539 10/15/2022
1.0.81 549 10/10/2022
1.0.80 520 10/6/2022
1.0.79 527 10/6/2022
1.0.78 573 10/2/2022
1.0.77 633 9/27/2022
1.0.76 609 9/25/2022
1.0.75 645 9/23/2022
1.0.74 614 9/23/2022
1.0.73 637 9/10/2022
1.0.72 684 6/29/2022
1.0.71 678 5/29/2022
1.0.70 679 5/29/2022
1.0.69 680 5/28/2022
1.0.68 672 5/24/2022
1.0.66 688 5/1/2022
1.0.64 773 4/17/2022
1.0.63 727 4/15/2022
1.0.62 766 3/24/2022
1.0.61 730 3/20/2022
1.0.55 756 3/13/2022
1.0.54 728 3/11/2022
1.0.53 750 3/11/2022
1.0.52 739 3/11/2022
1.0.51 796 2/26/2022
1.0.50 983 2/9/2022
1.0.49 966 2/1/2022
1.0.48 996 1/25/2022
1.0.47 522 11/29/2021
1.0.46 484 11/27/2021
1.0.45 652 10/12/2021
1.0.44 559 8/23/2021
1.0.43 665 8/10/2021
1.0.42 543 7/21/2021
1.0.41 575 4/4/2021
1.0.40 543 4/4/2021
1.0.39 520 3/29/2021
1.0.38 613 3/27/2021
1.0.37 566 3/15/2021
1.0.36 594 3/14/2021