SquareWidget.HMAC.Client.Core 6.0.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package SquareWidget.HMAC.Client.Core --version 6.0.0
NuGet\Install-Package SquareWidget.HMAC.Client.Core -Version 6.0.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="SquareWidget.HMAC.Client.Core" Version="6.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SquareWidget.HMAC.Client.Core --version 6.0.0
#r "nuget: SquareWidget.HMAC.Client.Core, 6.0.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.
// Install SquareWidget.HMAC.Client.Core as a Cake Addin
#addin nuget:?package=SquareWidget.HMAC.Client.Core&version=6.0.0

// Install SquareWidget.HMAC.Client.Core as a Cake Tool
#tool nuget:?package=SquareWidget.HMAC.Client.Core&version=6.0.0

SquareWidget.HMAC.Client.Core

HttpClient base class for HMAC authentication in .NET Core 6.0

Prerequisites

.NET Core 6.0

Getting Started

See the documentation for usage. Download the NuGet package in your .NET client solution.

var baseUri = "https://localhost:44320";
var credentials = new ClientCredentials
{
    ClientId = "testClient",
    ClientSecret = "P@ssw0rd"
};

var requestUri = "api/widgets/1";
using (var client = new HmacHttpClient(baseUri, credentials))
{
    var widget = client.Get<Widget>(requestUri).Result;
    // do something with widget ID 1...
}

Server Side

Use SquareWidget.HMAC.Server.Core package. See the documentation.

Versioning

Version 6.0.0 targets .NET 6.0

Authors

James Still

License

This project is licensed under the MIT License.

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 was computed.  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 was computed.  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

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
6.0.0 840 8/26/2022
3.0.0 762 5/8/2021
2.1.1 1,046 6/20/2019
2.1.0 1,391 12/8/2018

Now targets .NET 6.0. Also timestamp now uses unix timestamp instead of round-trip "o" in order to faciliate API testing with javascript.