aemarcoWebTools 4.0.7

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

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

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. 
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.2.4 61 1/26/2025
8.2.3 55 1/9/2025
8.2.2 60 1/9/2025
8.1.4 102 1/1/2025
8.1.3 92 12/31/2024
8.1.2 82 12/26/2024
8.0.8 81 12/23/2024
8.0.7 81 12/23/2024
8.0.6 90 12/22/2024
8.0.5 85 12/21/2024
8.0.4 95 11/17/2024
8.0.3 140 11/17/2024
5.0.21 91 11/16/2024
5.0.20 94 10/20/2024
5.0.19 92 10/19/2024
5.0.18 110 10/19/2024
5.0.17 95 10/13/2024
5.0.16 98 10/12/2024
5.0.6 88 10/6/2024
5.0.5 96 10/2/2024
5.0.4 134 10/1/2024
5.0.3 98 9/22/2024
5.0.2 187 9/16/2024
4.0.9 112 9/15/2024
4.0.8 93 9/8/2024
4.0.7 84 9/8/2024
4.0.6 92 9/8/2024
4.0.5 78 9/8/2024
4.0.2 112 9/8/2024
3.1.27 99 9/8/2024
3.1.26 111 9/7/2024
3.1.25 109 9/7/2024
3.1.24 106 9/7/2024
3.1.23 99 9/1/2024
3.1.22 109 9/1/2024
3.1.21 133 6/16/2024
3.1.20 108 5/31/2024
3.1.19 122 5/20/2024
3.1.18 98 5/10/2024
3.1.17 132 4/12/2024
3.1.16 122 4/4/2024
3.1.15 109 3/22/2024
3.1.11 115 3/19/2024
3.1.10 124 2/16/2024
3.1.7 135 2/11/2024
3.1.6 124 2/11/2024
3.1.5 123 2/11/2024
3.1.4 127 2/11/2024
3.0.18 180 1/29/2024
3.0.17 106 1/29/2024
3.0.16 109 1/27/2024
3.0.15 85 1/27/2024
3.0.8 109 1/27/2024
3.0.7 148 1/13/2024
2.0.18 152 1/4/2024
2.0.17 142 1/1/2024
2.0.16 131 12/27/2023
2.0.15 119 12/26/2023
2.0.14 140 12/26/2023
2.0.13 129 12/25/2023
2.0.11 132 12/23/2023
2.0.10 136 12/16/2023
2.0.9 125 12/15/2023
2.0.8 136 12/14/2023
2.0.7 123 12/13/2023
2.0.5 123 12/11/2023
2.0.4 123 12/11/2023
2.0.2 199 12/10/2023
1.9.2 128 12/10/2023
1.8.4 132 12/10/2023
1.8.3 138 12/9/2023
1.8.2 127 12/9/2023
1.1.28 153 11/27/2023
1.1.27 136 11/26/2023
1.1.26 139 11/18/2023
1.1.25 131 11/17/2023
1.1.24 150 10/30/2023
1.1.23 134 10/29/2023
1.1.22 146 10/22/2023
1.1.21 129 10/17/2023
1.1.20 161 9/16/2023
1.1.19 177 8/27/2023
1.1.18 147 7/31/2023
1.1.17 174 7/16/2023
1.1.16 169 7/9/2023
1.1.15 163 7/8/2023
1.1.14 161 7/5/2023
1.1.13 172 6/29/2023
1.1.12 184 5/1/2023
1.1.11 272 3/5/2023
1.1.10 266 3/3/2023
1.1.9 264 2/28/2023
1.1.7 267 2/26/2023
1.1.6 276 2/26/2023
1.1.5 263 2/26/2023
1.1.3 271 2/25/2023
1.1.0 269 2/25/2023
1.0.108 303 1/23/2023
1.0.107 324 1/13/2023
1.0.106 325 1/13/2023
1.0.105 323 1/12/2023
1.0.104 332 1/11/2023
1.0.103 342 1/7/2023
1.0.102 319 1/6/2023
1.0.101 321 1/6/2023
1.0.100 324 1/2/2023
1.0.99 315 12/30/2022
1.0.98 330 12/28/2022
1.0.97 314 12/28/2022
1.0.95 326 12/3/2022
1.0.94 351 11/24/2022
1.0.93 385 11/1/2022
1.0.92 408 10/30/2022
1.0.91 416 10/27/2022
1.0.90 414 10/26/2022
1.0.89 407 10/26/2022
1.0.88 428 10/23/2022
1.0.86 432 10/18/2022
1.0.85 407 10/18/2022
1.0.84 420 10/16/2022
1.0.83 419 10/15/2022
1.0.82 427 10/15/2022
1.0.81 426 10/10/2022
1.0.80 418 10/6/2022
1.0.79 411 10/6/2022
1.0.78 469 10/2/2022
1.0.77 488 9/27/2022
1.0.76 506 9/25/2022
1.0.75 507 9/23/2022
1.0.74 502 9/23/2022
1.0.73 485 9/10/2022
1.0.72 559 6/29/2022
1.0.71 541 5/29/2022
1.0.70 541 5/29/2022
1.0.69 539 5/28/2022
1.0.68 544 5/24/2022
1.0.66 575 5/1/2022
1.0.64 626 4/17/2022
1.0.63 588 4/15/2022
1.0.62 614 3/24/2022
1.0.61 602 3/20/2022
1.0.55 593 3/13/2022
1.0.54 595 3/11/2022
1.0.53 603 3/11/2022
1.0.52 601 3/11/2022
1.0.51 636 2/26/2022
1.0.50 831 2/9/2022
1.0.49 843 2/1/2022
1.0.48 851 1/25/2022
1.0.47 379 11/29/2021
1.0.46 343 11/27/2021
1.0.45 481 10/12/2021
1.0.44 431 8/23/2021
1.0.43 513 8/10/2021
1.0.42 386 7/21/2021
1.0.41 407 4/4/2021
1.0.40 405 4/4/2021
1.0.39 384 3/29/2021
1.0.38 470 3/27/2021
1.0.37 416 3/15/2021
1.0.36 454 3/14/2021