aemarcoWebTools 3.1.25

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

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

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
5.0.3 62 9/22/2024
5.0.2 106 9/16/2024
4.0.9 81 9/15/2024
4.0.8 61 9/8/2024
4.0.7 53 9/8/2024
4.0.6 66 9/8/2024
4.0.5 51 9/8/2024
4.0.2 83 9/8/2024
3.1.27 71 9/8/2024
3.1.26 81 9/7/2024
3.1.25 76 9/7/2024
3.1.24 79 9/7/2024
3.1.23 72 9/1/2024
3.1.22 82 9/1/2024
3.1.21 112 6/16/2024
3.1.20 90 5/31/2024
3.1.19 103 5/20/2024
3.1.18 83 5/10/2024
3.1.17 118 4/12/2024
3.1.16 107 4/4/2024
3.1.15 95 3/22/2024
3.1.11 100 3/19/2024
3.1.10 106 2/16/2024
3.1.7 117 2/11/2024
3.1.6 108 2/11/2024
3.1.5 108 2/11/2024
3.1.4 112 2/11/2024
3.0.18 169 1/29/2024
3.0.17 91 1/29/2024
3.0.16 98 1/27/2024
3.0.15 72 1/27/2024
3.0.8 98 1/27/2024
3.0.7 137 1/13/2024
2.0.18 138 1/4/2024
2.0.17 130 1/1/2024
2.0.16 118 12/27/2023
2.0.15 106 12/26/2023
2.0.14 129 12/26/2023
2.0.13 116 12/25/2023
2.0.11 118 12/23/2023
2.0.10 119 12/16/2023
2.0.9 113 12/15/2023
2.0.8 121 12/14/2023
2.0.7 111 12/13/2023
2.0.5 112 12/11/2023
2.0.4 111 12/11/2023
2.0.2 187 12/10/2023
1.9.2 116 12/10/2023
1.8.4 121 12/10/2023
1.8.3 124 12/9/2023
1.8.2 112 12/9/2023
1.1.28 139 11/27/2023
1.1.27 120 11/26/2023
1.1.26 127 11/18/2023
1.1.25 114 11/17/2023
1.1.24 136 10/30/2023
1.1.23 119 10/29/2023
1.1.22 129 10/22/2023
1.1.21 116 10/17/2023
1.1.20 148 9/16/2023
1.1.19 163 8/27/2023
1.1.18 133 7/31/2023
1.1.17 162 7/16/2023
1.1.16 157 7/9/2023
1.1.15 149 7/8/2023
1.1.14 147 7/5/2023
1.1.13 157 6/29/2023
1.1.12 169 5/1/2023
1.1.11 258 3/5/2023
1.1.10 252 3/3/2023
1.1.9 248 2/28/2023
1.1.7 252 2/26/2023
1.1.6 261 2/26/2023
1.1.5 249 2/26/2023
1.1.3 257 2/25/2023
1.1.0 255 2/25/2023
1.0.108 289 1/23/2023
1.0.107 310 1/13/2023
1.0.106 311 1/13/2023
1.0.105 306 1/12/2023
1.0.104 319 1/11/2023
1.0.103 328 1/7/2023
1.0.102 305 1/6/2023
1.0.101 306 1/6/2023
1.0.100 309 1/2/2023
1.0.99 299 12/30/2022
1.0.98 316 12/28/2022
1.0.97 300 12/28/2022
1.0.95 312 12/3/2022
1.0.94 333 11/24/2022
1.0.93 369 11/1/2022
1.0.92 391 10/30/2022
1.0.91 401 10/27/2022
1.0.90 397 10/26/2022
1.0.89 393 10/26/2022
1.0.88 412 10/23/2022
1.0.86 418 10/18/2022
1.0.85 389 10/18/2022
1.0.84 404 10/16/2022
1.0.83 402 10/15/2022
1.0.82 410 10/15/2022
1.0.81 411 10/10/2022
1.0.80 403 10/6/2022
1.0.79 397 10/6/2022
1.0.78 454 10/2/2022
1.0.77 473 9/27/2022
1.0.76 491 9/25/2022
1.0.75 490 9/23/2022
1.0.74 487 9/23/2022
1.0.73 471 9/10/2022
1.0.72 545 6/29/2022
1.0.71 527 5/29/2022
1.0.70 525 5/29/2022
1.0.69 524 5/28/2022
1.0.68 527 5/24/2022
1.0.66 556 5/1/2022
1.0.64 611 4/17/2022
1.0.63 574 4/15/2022
1.0.62 598 3/24/2022
1.0.61 586 3/20/2022
1.0.55 576 3/13/2022
1.0.54 580 3/11/2022
1.0.53 587 3/11/2022
1.0.52 585 3/11/2022
1.0.51 620 2/26/2022
1.0.50 817 2/9/2022
1.0.49 826 2/1/2022
1.0.48 834 1/25/2022
1.0.47 362 11/29/2021
1.0.46 326 11/27/2021
1.0.45 466 10/12/2021
1.0.44 416 8/23/2021
1.0.43 499 8/10/2021
1.0.42 370 7/21/2021
1.0.41 393 4/4/2021
1.0.40 391 4/4/2021
1.0.39 370 3/29/2021
1.0.38 454 3/27/2021
1.0.37 402 3/15/2021
1.0.36 440 3/14/2021