Cuemon.AspNetCore.Authentication 8.1.0-preview

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

// Install Cuemon.AspNetCore.Authentication as a Cake Tool
#tool nuget:?package=Cuemon.AspNetCore.Authentication&version=8.1.0-preview&prerelease                

About

An open-source project (MIT license) that targets and complements the Microsoft .NET platform. It provides vast ways of possibilities for all breeds of coders, programmers, developers and the likes thereof. Your ideal companion for .NET 8, .NET 7, .NET 6, .NET Standard 2 and .NET Framework 4.6.2 and newer.

It is, by heart, free, flexible and built to extend and boost your agile codebelt.

Cuemon.AspNetCore.Authentication for .NET

The Cuemon.AspNetCore.Authentication namespace contains types that enable support for authentication using the concept of an Authenticator, AuthorizationHeader and (to tie the knots) an AuthorizationHeaderBuilder. Basic-, Digest Access- and HMAC Authentication is provided out-of-the-box. The namespace is an addition to the Microsoft.AspNetCore.Authentication namespace.

More documentation available at our documentation site:

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Cuemon.AspNetCore.Authentication:

Package Downloads
Cuemon.Extensions.AspNetCore.Authentication

The Cuemon.Extensions.AspNetCore.Authentication namespace contains both types and extension methods that complements the Cuemon.AspNetCore.Authentication namespace while being an addition to the Microsoft.AspNetCore.Authentication namespace.

Cuemon.AspNetCore.App

Provides a convenient set of default API additions for building an ASP.NET Core application.

Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4

The Cuemon.Extensions.AspNetCore.Authentication.AwsSignature4 namespace complements the Cuemon.AspNetCore.Authentication namespace while providing a way making and signing HTTP requests in the context of specific AWS services using Signature Version 4.

Codebelt.Extensions.AwsSignature4

The Codebelt.Extensions.AwsSignature4 namespace complements the Cuemon.AspNetCore.Authentication namespace while providing a way making and signing HTTP requests in the context of specific AWS services using Signature Version 4.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.0.0 280 11/13/2024
9.0.0-rc.1 141 11/11/2024
9.0.0-preview.12 51 10/17/2024
9.0.0-preview.11 158 10/9/2024
9.0.0-preview.10 83 10/5/2024
9.0.0-preview.9 441 9/26/2024
9.0.0-preview.8 52 9/23/2024
9.0.0-preview.7 52 9/21/2024
9.0.0-preview.6 70 9/18/2024
9.0.0-preview.5 63 9/13/2024
9.0.0-preview.4 51 9/6/2024
9.0.0-preview.3 56 8/31/2024
9.0.0-preview.2 77 8/23/2024
9.0.0-preview.1 71 8/17/2024
8.3.2 438 8/4/2024
8.3.1 198 6/2/2024
8.3.0 238 4/9/2024
8.2.0 316 3/3/2024
8.1.0 428 2/10/2024
8.1.0-rc1 336 2/8/2024
8.1.0-preview.52 65 2/5/2024
8.1.0-preview.20 77 1/22/2024
8.1.0-preview 383 1/16/2024
8.0.1 483 1/11/2024
8.0.0 665 11/14/2023
8.0.0-rc2 434 11/13/2023
8.0.0-rc1 477 11/7/2023
8.0.0-preview.183 73 11/13/2023
8.0.0-preview.176 75 11/12/2023
8.0.0-preview.158 63 11/9/2023
7.1.0 1,602 12/11/2022
7.0.0 1,468 11/9/2022
7.0.0-rc.2 118 11/3/2022
7.0.0-rc.1 108 10/26/2022
7.0.0-alpha.2 106 10/16/2022
7.0.0-alpha.1 129 9/23/2022
7.0.0-alpha 805 7/12/2022
6.4.1 1,787 5/8/2022
6.4.0 1,570 1/24/2022
6.4.0-rc 846 1/23/2022
6.3.0 2,046 11/28/2021
6.2.0 1,839 5/30/2021
6.1.0 1,228 5/16/2021
6.0.1 1,111 5/3/2021
6.0.1-rc 818 5/3/2021
6.0.0 1,212 4/18/2021
6.0.0-rc.23 180 4/18/2021
6.0.0-rc.21 156 4/12/2021
6.0.0-rc.20 167 4/1/2021
6.0.0-rc.18 247 3/22/2021
6.0.0-rc.17 163 3/14/2021
6.0.0-rc.16 190 3/7/2021
6.0.0-rc.15 176 3/4/2021
6.0.0-rc.14 195 3/4/2021
6.0.0-rc.12 210 3/3/2021
6.0.0-rc.6 192 2/28/2021
6.0.0-rc.2 191 2/28/2021
5.0.2019.40 1,401 2/10/2019
5.0.2019.30 1,268 1/28/2019
5.0.2018.350 1,340 12/16/2018
5.0.2018.251 1,766 9/10/2018
5.0.2018.250 1,254 9/9/2018
4.3.2018.2200 1,458 8/8/2018
4.3.2018.2070 1,278 7/27/2018
4.2.2018.840 1,448 2/10/2018

Version: 8.1.0
Availability: .NET 8, .NET 7 and .NET 6
 
# Breaking Changes
- CHANGED TryAuthenticate{T} signature on the static Authenticator class in the Cuemon.AspNetCore.Authentication namespace to honor the otherwise suggested Try-Parse pattern (although breaking the method was assessed to have low risk of external callers)
- CHANGED Authenticate{T} signature on the static Authenticator class in the Cuemon.AspNetCore.Authentication namespace to return a ClaimsPrincipal instead of assigning this directly to the User of the HttpContext instance (although breaking the method was assessed to have low risk of external callers)
 
# New Features
- ADDED BasicAuthenticationHandler class in the Cuemon.AspNetCore.Authentication.Basic namespace to provide a HTTP Basic Authentication implementation of AuthenticationHandler{TOptions}
- ADDED DigestAuthenticationHandler class in the Cuemon.AspNetCore.Authentication.Digest namespace to provide a HTTP Digest Access Authentication implementation of AuthenticationHandler{TOptions}
- ADDED HmacAuthenticationHandler class in the Cuemon.AspNetCore.Authentication.Hmac namespace to provide a HTTP HMAC Authentication implementation of AuthenticationHandler{TOptions}
 
# Improvements
- CHANGED BasicAuthenticationMiddleware class in the Cuemon.AspNetCore.Authentication.Basic namespace to be slightly more reusable in the confines of the Cuemon.AspNetCore.Authentication assembly
- CHANGED BasicAuthenticationOptions class in the Cuemon.AspNetCore.Authentication.Basic namespace to include ValidateOptions to ensure that public read-write properties are in a valid state
- CHANGED AuthenticationOptions class in the Cuemon.AspNetCore.Authentication namespace to inherit from AuthenticationSchemeOptions and implement IValidatableParameterObject (replacing earlier IParameterObject) that ensures UnauthorizedMessage property is in a valid state
- CHANGED DigestAuthenticationMiddleware class in the Cuemon.AspNetCore.Authentication.Digest namespace to be slightly more reusable in the confines of the Cuemon.AspNetCore.Authentication assembly
- CHANGED DigestAuthenticationOptions class in the Cuemon.AspNetCore.Authentication.Digest namespace to include ValidateOptions to ensure that public read-write properties are in a valid state
- CHANGED DigestAuthorizationHeaderBuilder class in the Cuemon.AspNetCore.Authentication.Digest namespace to include an extra overload of AddFromWwwAuthenticateHeader that accepts an instance of HttpResponseHeaders
- CHANGED HmacAuthenticationMiddleware class in the Cuemon.AspNetCore.Authentication.Hmac namespace to be slightly more reusable in the confines of the Cuemon.AspNetCore.Authentication assembly
- CHANGED HmacAuthenticationOptions class in the Cuemon.AspNetCore.Authentication.Hmac namespace to include ValidateOptions to ensure that public read-write properties are in a valid state
- CHANGED HmacAuthorizationHeaderBuilder class in the Cuemon.AspNetCore.Authentication.Digest namespace to include an extra overload of AddFromRequest that accepts an instance of HttpRequestMessage
 
# Bug Fixes
- FIXED DigestAuthenticationOptions class in the Cuemon.AspNetCore.Authentication.Digest namespace to include UseServerSideHa1Storage that finally allows the server to bypass calculation of HA1 password representation
 
Version: 8.0.1
Availability: .NET 8, .NET 7 and .NET 6
 
# ALM
- CHANGED Dependencies to latest and greatest with respect to TFMs
 
Version: 8.0.0
Availability: .NET 8, .NET 7 and .NET 6
 
# ALM
- ADDED TFM for net8.0
- REMOVED TFM for netstandard2.0
- CHANGED Dependencies to latest and greatest with respect to TFMs
 
# Quality Analysis Actions
- CHANGED HmacAuthorizationHeader class in the Cuemon.AspNetCore.Authentication.Hmac namespace to be compliant with https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1860
- CHANGED BasicAuthenticationMiddleware class in the Cuemon.AspNetCore.Authentication.Basic namespace to be compliant with https://rules.sonarsource.com/csharp/RSPEC-6618/
- CHANGED DigestAuthenticationMiddleware class in the Cuemon.AspNetCore.Authentication.Digest namespace to be compliant with https://rules.sonarsource.com/csharp/RSPEC-6618/
- CHANGED DigestAuthorizationHeaderBuilder class in the Cuemon.AspNetCore.Authentication.Digest namespace to be compliant with https://rules.sonarsource.com/csharp/RSPEC-6618/
- CHANGED HmacAuthenticationMiddleware class in the Cuemon.AspNetCore.Authentication.Hmac namespace to be compliant with https://rules.sonarsource.com/csharp/RSPEC-6618/