SquareWidget.HMAC.Client.Core

HttpClient base class for HMAC authentication in .NET 8.0


Keywords
HMAC, Middleware, Security
License
MIT
Install
Install-Package SquareWidget.HMAC.Client.Core -Version 8.1.0

Documentation

SquareWidget.HMAC.Client.Core

HttpClient base class for HMAC authentication in .NET Core 8.0

Prerequisites

.NET Core 8.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 8.0.0 targets .NET 8.0

Authors

James Still

License

This project is licensed under the MIT License.