aemarcoWebTools 8.0.7

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

// Install aemarcoWebTools as a Cake Tool
#tool nuget:?package=aemarcoWebTools&version=8.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. 
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.4 46 1/1/2025
8.1.3 40 12/31/2024
8.1.2 74 12/26/2024
8.0.8 71 12/23/2024
8.0.7 71 12/23/2024
8.0.6 79 12/22/2024
8.0.5 75 12/21/2024
8.0.4 88 11/17/2024
8.0.3 133 11/17/2024
5.0.21 83 11/16/2024
5.0.20 89 10/20/2024
5.0.19 85 10/19/2024
5.0.18 105 10/19/2024
5.0.17 86 10/13/2024
5.0.16 89 10/12/2024
5.0.6 79 10/6/2024
5.0.5 89 10/2/2024
5.0.4 126 10/1/2024
5.0.3 90 9/22/2024
5.0.2 176 9/16/2024
4.0.9 108 9/15/2024
4.0.8 90 9/8/2024
4.0.7 79 9/8/2024
4.0.6 87 9/8/2024
4.0.5 75 9/8/2024
4.0.2 109 9/8/2024
3.1.27 96 9/8/2024
3.1.26 106 9/7/2024
3.1.25 106 9/7/2024
3.1.24 103 9/7/2024
3.1.23 96 9/1/2024
3.1.22 106 9/1/2024
3.1.21 129 6/16/2024
3.1.20 104 5/31/2024
3.1.19 118 5/20/2024
3.1.18 94 5/10/2024
3.1.17 128 4/12/2024
3.1.16 118 4/4/2024
3.1.15 105 3/22/2024
3.1.11 111 3/19/2024
3.1.10 120 2/16/2024
3.1.7 131 2/11/2024
3.1.6 120 2/11/2024
3.1.5 119 2/11/2024
3.1.4 123 2/11/2024
3.0.18 176 1/29/2024
3.0.17 102 1/29/2024
3.0.16 105 1/27/2024
3.0.15 81 1/27/2024
3.0.8 105 1/27/2024
3.0.7 144 1/13/2024
2.0.18 148 1/4/2024
2.0.17 138 1/1/2024
2.0.16 127 12/27/2023
2.0.15 115 12/26/2023
2.0.14 136 12/26/2023
2.0.13 125 12/25/2023
2.0.11 128 12/23/2023
2.0.10 130 12/16/2023
2.0.9 121 12/15/2023
2.0.8 132 12/14/2023
2.0.7 119 12/13/2023
2.0.5 119 12/11/2023
2.0.4 119 12/11/2023
2.0.2 195 12/10/2023
1.9.2 124 12/10/2023
1.8.4 128 12/10/2023
1.8.3 134 12/9/2023
1.8.2 123 12/9/2023
1.1.28 149 11/27/2023
1.1.27 132 11/26/2023
1.1.26 135 11/18/2023
1.1.25 127 11/17/2023
1.1.24 146 10/30/2023
1.1.23 130 10/29/2023
1.1.22 142 10/22/2023
1.1.21 125 10/17/2023
1.1.20 157 9/16/2023
1.1.19 173 8/27/2023
1.1.18 143 7/31/2023
1.1.17 170 7/16/2023
1.1.16 165 7/9/2023
1.1.15 159 7/8/2023
1.1.14 157 7/5/2023
1.1.13 168 6/29/2023
1.1.12 178 5/1/2023
1.1.11 267 3/5/2023
1.1.10 261 3/3/2023
1.1.9 260 2/28/2023
1.1.7 263 2/26/2023
1.1.6 270 2/26/2023
1.1.5 257 2/26/2023
1.1.3 265 2/25/2023
1.1.0 265 2/25/2023
1.0.108 297 1/23/2023
1.0.107 320 1/13/2023
1.0.106 321 1/13/2023
1.0.105 315 1/12/2023
1.0.104 328 1/11/2023
1.0.103 338 1/7/2023
1.0.102 313 1/6/2023
1.0.101 317 1/6/2023
1.0.100 320 1/2/2023
1.0.99 311 12/30/2022
1.0.98 324 12/28/2022
1.0.97 308 12/28/2022
1.0.95 322 12/3/2022
1.0.94 347 11/24/2022
1.0.93 381 11/1/2022
1.0.92 404 10/30/2022
1.0.91 412 10/27/2022
1.0.90 410 10/26/2022
1.0.89 403 10/26/2022
1.0.88 424 10/23/2022
1.0.86 428 10/18/2022
1.0.85 403 10/18/2022
1.0.84 416 10/16/2022
1.0.83 415 10/15/2022
1.0.82 423 10/15/2022
1.0.81 422 10/10/2022
1.0.80 414 10/6/2022
1.0.79 407 10/6/2022
1.0.78 465 10/2/2022
1.0.77 484 9/27/2022
1.0.76 502 9/25/2022
1.0.75 503 9/23/2022
1.0.74 498 9/23/2022
1.0.73 481 9/10/2022
1.0.72 555 6/29/2022
1.0.71 537 5/29/2022
1.0.70 537 5/29/2022
1.0.69 535 5/28/2022
1.0.68 538 5/24/2022
1.0.66 571 5/1/2022
1.0.64 622 4/17/2022
1.0.63 584 4/15/2022
1.0.62 610 3/24/2022
1.0.61 598 3/20/2022
1.0.55 589 3/13/2022
1.0.54 591 3/11/2022
1.0.53 599 3/11/2022
1.0.52 597 3/11/2022
1.0.51 632 2/26/2022
1.0.50 827 2/9/2022
1.0.49 839 2/1/2022
1.0.48 847 1/25/2022
1.0.47 375 11/29/2021
1.0.46 339 11/27/2021
1.0.45 477 10/12/2021
1.0.44 427 8/23/2021
1.0.43 509 8/10/2021
1.0.42 382 7/21/2021
1.0.41 403 4/4/2021
1.0.40 401 4/4/2021
1.0.39 380 3/29/2021
1.0.38 466 3/27/2021
1.0.37 412 3/15/2021
1.0.36 450 3/14/2021