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 47 1/1/2025
8.1.3 42 12/31/2024
8.1.2 76 12/26/2024
8.0.8 73 12/23/2024
8.0.7 73 12/23/2024
8.0.6 81 12/22/2024
8.0.5 77 12/21/2024
8.0.4 89 11/17/2024
8.0.3 134 11/17/2024
5.0.21 84 11/16/2024
5.0.20 90 10/20/2024
5.0.19 86 10/19/2024
5.0.18 106 10/19/2024
5.0.17 87 10/13/2024
5.0.16 90 10/12/2024
5.0.6 80 10/6/2024
5.0.5 90 10/2/2024
5.0.4 127 10/1/2024
5.0.3 91 9/22/2024
5.0.2 177 9/16/2024
4.0.9 109 9/15/2024
4.0.8 91 9/8/2024
4.0.7 80 9/8/2024
4.0.6 88 9/8/2024
4.0.5 76 9/8/2024
4.0.2 110 9/8/2024
3.1.27 97 9/8/2024
3.1.26 107 9/7/2024
3.1.25 107 9/7/2024
3.1.24 104 9/7/2024
3.1.23 97 9/1/2024
3.1.22 107 9/1/2024
3.1.21 130 6/16/2024
3.1.20 105 5/31/2024
3.1.19 119 5/20/2024
3.1.18 95 5/10/2024
3.1.17 129 4/12/2024
3.1.16 119 4/4/2024
3.1.15 106 3/22/2024
3.1.11 112 3/19/2024
3.1.10 121 2/16/2024
3.1.7 132 2/11/2024
3.1.6 121 2/11/2024
3.1.5 120 2/11/2024
3.1.4 124 2/11/2024
3.0.18 177 1/29/2024
3.0.17 103 1/29/2024
3.0.16 106 1/27/2024
3.0.15 82 1/27/2024
3.0.8 106 1/27/2024
3.0.7 145 1/13/2024
2.0.18 149 1/4/2024
2.0.17 139 1/1/2024
2.0.16 128 12/27/2023
2.0.15 116 12/26/2023
2.0.14 137 12/26/2023
2.0.13 126 12/25/2023
2.0.11 129 12/23/2023
2.0.10 131 12/16/2023
2.0.9 122 12/15/2023
2.0.8 133 12/14/2023
2.0.7 120 12/13/2023
2.0.5 120 12/11/2023
2.0.4 120 12/11/2023
2.0.2 196 12/10/2023
1.9.2 125 12/10/2023
1.8.4 129 12/10/2023
1.8.3 135 12/9/2023
1.8.2 124 12/9/2023
1.1.28 150 11/27/2023
1.1.27 133 11/26/2023
1.1.26 136 11/18/2023
1.1.25 128 11/17/2023
1.1.24 147 10/30/2023
1.1.23 131 10/29/2023
1.1.22 143 10/22/2023
1.1.21 126 10/17/2023
1.1.20 158 9/16/2023
1.1.19 174 8/27/2023
1.1.18 144 7/31/2023
1.1.17 171 7/16/2023
1.1.16 166 7/9/2023
1.1.15 160 7/8/2023
1.1.14 158 7/5/2023
1.1.13 169 6/29/2023
1.1.12 179 5/1/2023
1.1.11 268 3/5/2023
1.1.10 262 3/3/2023
1.1.9 261 2/28/2023
1.1.7 264 2/26/2023
1.1.6 271 2/26/2023
1.1.5 258 2/26/2023
1.1.3 266 2/25/2023
1.1.0 266 2/25/2023
1.0.108 298 1/23/2023
1.0.107 321 1/13/2023
1.0.106 322 1/13/2023
1.0.105 316 1/12/2023
1.0.104 329 1/11/2023
1.0.103 339 1/7/2023
1.0.102 314 1/6/2023
1.0.101 318 1/6/2023
1.0.100 321 1/2/2023
1.0.99 312 12/30/2022
1.0.98 325 12/28/2022
1.0.97 309 12/28/2022
1.0.95 323 12/3/2022
1.0.94 348 11/24/2022
1.0.93 382 11/1/2022
1.0.92 405 10/30/2022
1.0.91 413 10/27/2022
1.0.90 411 10/26/2022
1.0.89 404 10/26/2022
1.0.88 425 10/23/2022
1.0.86 429 10/18/2022
1.0.85 404 10/18/2022
1.0.84 417 10/16/2022
1.0.83 416 10/15/2022
1.0.82 424 10/15/2022
1.0.81 423 10/10/2022
1.0.80 415 10/6/2022
1.0.79 408 10/6/2022
1.0.78 466 10/2/2022
1.0.77 485 9/27/2022
1.0.76 503 9/25/2022
1.0.75 504 9/23/2022
1.0.74 499 9/23/2022
1.0.73 482 9/10/2022
1.0.72 556 6/29/2022
1.0.71 538 5/29/2022
1.0.70 538 5/29/2022
1.0.69 536 5/28/2022
1.0.68 539 5/24/2022
1.0.66 572 5/1/2022
1.0.64 623 4/17/2022
1.0.63 585 4/15/2022
1.0.62 611 3/24/2022
1.0.61 599 3/20/2022
1.0.55 590 3/13/2022
1.0.54 592 3/11/2022
1.0.53 600 3/11/2022
1.0.52 598 3/11/2022
1.0.51 633 2/26/2022
1.0.50 828 2/9/2022
1.0.49 840 2/1/2022
1.0.48 848 1/25/2022
1.0.47 376 11/29/2021
1.0.46 340 11/27/2021
1.0.45 478 10/12/2021
1.0.44 428 8/23/2021
1.0.43 510 8/10/2021
1.0.42 383 7/21/2021
1.0.41 404 4/4/2021
1.0.40 402 4/4/2021
1.0.39 381 3/29/2021
1.0.38 467 3/27/2021
1.0.37 414 3/15/2021
1.0.36 452 3/14/2021