SquareWidget.HMAC.Client.Core 3.0.0

Install-Package SquareWidget.HMAC.Client.Core -Version 3.0.0
dotnet add package SquareWidget.HMAC.Client.Core --version 3.0.0
<PackageReference Include="SquareWidget.HMAC.Client.Core" Version="3.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 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SquareWidget.HMAC.Client.Core, 3.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=3.0.0

// Install SquareWidget.HMAC.Client.Core as a Cake Tool
#tool nuget:?package=SquareWidget.HMAC.Client.Core&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SquareWidget.HMAC.Client.Core

HttpClient base class for HMAC authentication in .NET 5.0

Prerequisites

.NET 5.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 3.0.0 targets .NET 5.0

Authors

James Still

License

This project is licensed under the MIT License.

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
3.0.0 80 5/8/2021
2.1.1 391 6/20/2019
2.1.0 589 12/8/2018

Now targets .NET 5.0. Also timestamp now uses ISO 8601 sortable format specifier "s" instead of round-trip "o" in order to faciliate API testing with javascript.