aemarcoWebTools 5.0.16

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

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

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.1.4 90 8 days ago
8.1.3 86 8 days ago
8.1.2 76 13 days ago
8.0.8 73 16 days ago
8.0.7 73 16 days ago
8.0.6 82 18 days ago
8.0.5 77 18 days ago
8.0.4 90 2 months ago
8.0.3 136 2 months ago
5.0.21 86 2 months ago
5.0.20 90 3 months ago
5.0.19 86 3 months ago
5.0.18 106 3 months ago
5.0.17 87 3 months ago
5.0.16 90 3 months ago
5.0.6 80 3 months ago
5.0.5 90 3 months ago
5.0.4 127 3 months ago
5.0.3 94 4 months ago
5.0.2 177 4 months ago
4.0.9 109 4 months ago
4.0.8 91 4 months ago
4.0.7 82 4 months ago
4.0.6 88 4 months ago
4.0.5 76 4 months ago
4.0.2 110 4 months ago
3.1.27 97 4 months ago
3.1.26 107 4 months ago
3.1.25 107 4 months ago
3.1.24 104 4 months ago
3.1.23 97 4 months ago
3.1.22 107 4 months ago
3.1.21 130 7 months ago
3.1.20 105 7 months ago
3.1.19 119 8 months ago
3.1.18 95 8 months ago
3.1.17 129 9 months ago
3.1.16 119 9 months ago
3.1.15 106 10 months ago
3.1.11 112 10 months ago
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 264 3/3/2023
1.1.9 261 2/28/2023
1.1.7 264 2/26/2023
1.1.6 273 2/26/2023
1.1.5 260 2/26/2023
1.1.3 266 2/25/2023
1.1.0 266 2/25/2023
1.0.108 299 1/23/2023
1.0.107 322 1/13/2023
1.0.106 323 1/13/2023
1.0.105 317 1/12/2023
1.0.104 330 1/11/2023
1.0.103 340 1/7/2023
1.0.102 315 1/6/2023
1.0.101 319 1/6/2023
1.0.100 322 1/2/2023
1.0.99 313 12/30/2022
1.0.98 326 12/28/2022
1.0.97 310 12/28/2022
1.0.95 324 12/3/2022
1.0.94 349 11/24/2022
1.0.93 383 11/1/2022
1.0.92 406 10/30/2022
1.0.91 414 10/27/2022
1.0.90 412 10/26/2022
1.0.89 405 10/26/2022
1.0.88 426 10/23/2022
1.0.86 430 10/18/2022
1.0.85 405 10/18/2022
1.0.84 418 10/16/2022
1.0.83 417 10/15/2022
1.0.82 425 10/15/2022
1.0.81 424 10/10/2022
1.0.80 416 10/6/2022
1.0.79 409 10/6/2022
1.0.78 467 10/2/2022
1.0.77 486 9/27/2022
1.0.76 504 9/25/2022
1.0.75 505 9/23/2022
1.0.74 500 9/23/2022
1.0.73 483 9/10/2022
1.0.72 557 6/29/2022
1.0.71 539 5/29/2022
1.0.70 539 5/29/2022
1.0.69 537 5/28/2022
1.0.68 540 5/24/2022
1.0.66 573 5/1/2022
1.0.64 624 4/17/2022
1.0.63 586 4/15/2022
1.0.62 612 3/24/2022
1.0.61 600 3/20/2022
1.0.55 591 3/13/2022
1.0.54 593 3/11/2022
1.0.53 601 3/11/2022
1.0.52 599 3/11/2022
1.0.51 634 2/26/2022
1.0.50 829 2/9/2022
1.0.49 841 2/1/2022
1.0.48 849 1/25/2022
1.0.47 377 11/29/2021
1.0.46 341 11/27/2021
1.0.45 479 10/12/2021
1.0.44 429 8/23/2021
1.0.43 511 8/10/2021
1.0.42 384 7/21/2021
1.0.41 405 4/4/2021
1.0.40 403 4/4/2021
1.0.39 382 3/29/2021
1.0.38 468 3/27/2021
1.0.37 414 3/15/2021
1.0.36 452 3/14/2021