AKS.HttpAuthentication 1.1.0

dotnet add package AKS.HttpAuthentication --version 1.1.0
                    
NuGet\Install-Package AKS.HttpAuthentication -Version 1.1.0
                    
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="AKS.HttpAuthentication" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AKS.HttpAuthentication" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AKS.HttpAuthentication" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AKS.HttpAuthentication --version 1.1.0
                    
#r "nuget: AKS.HttpAuthentication, 1.1.0"
                    
#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.
#:package AKS.HttpAuthentication@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AKS.HttpAuthentication&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AKS.HttpAuthentication&version=1.1.0
                    
Install as a Cake Tool

This approach simplifies the process of setting up HTTP clients with various authentication methods, making it easier to interact with authenticated APIs.

The NuGet package AKS.HttpAuthentication provides a unified approach to handling various HTTP authentication schemes in .NET applications. It supports multiple authentication types, including Basic, Bearer, Digest, NTLM, and OAuth2.​

🔐 Key Features Multi-Auth Support: Handles different HTTP authentication methods.

Simplified Client Creation: Offers an AuthenticatedHttpClient class that abstracts the complexity of setting up authenticated HTTP clients.

.NET 8.0 Compatibility: Designed to work seamlessly with .NET 8.0 and higher versions.

Installation To install the package using the .NET CLI:

dotnet add package AKS.HttpAuthentication --version 1.1.0 📦 Usage Example Here's how you can create an authenticated HTTP client using Basic Authentication:​

var client = new AuthenticatedHttpClient(new HttpAuthConfig { Type = AuthType.Basic, Username = "admin", Password = "1234" });

var response = await client.GetAsync("https://example.com");

Please donate to manage this package.

https://www.paypal.com/donate/?business=S7DJDFNKDP2AL&no_recurring=0&item_name=Help+me+to+manage+it&currency_code=USD

Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
1.1.0 283 4/17/2025
1.0.0 239 4/17/2025