SquareWidget.HMAC.Client.Core 2.1.1

HttpClient base class for HMAC authentication in ASP.NET Core Standard 2.0

Install-Package SquareWidget.HMAC.Client.Core -Version 2.1.1
dotnet add package SquareWidget.HMAC.Client.Core --version 2.1.1
<PackageReference Include="SquareWidget.HMAC.Client.Core" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SquareWidget.HMAC.Client.Core --version 2.1.1
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 ASP.NET Core Standard 2.0

Status

Build status

Prerequisites

ASP.NET Core Standard 2.0

Getting Started

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

private static HmacHttpClient _client;

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

var requestUri = "api/widgets/1";
_client = new HmacHttpClient
{
    BaseUrl = _baseUrl,
    ClientCredentials = _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

ASP.NET Core Standard 2.0

Authors

James Still

License

None

SquareWidget.HMAC.Client.Core

HttpClient base class for HMAC authentication in ASP.NET Core Standard 2.0

Status

Build status

Prerequisites

ASP.NET Core Standard 2.0

Getting Started

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

private static HmacHttpClient _client;

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

var requestUri = "api/widgets/1";
_client = new HmacHttpClient
{
    BaseUrl = _baseUrl,
    ClientCredentials = _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

ASP.NET Core Standard 2.0

Authors

James Still

License

None

Release Notes

Targeting .NET Standard 2.0. Added parameterless constructor for use with HttpClientFactory DI and public setters for BaseUrl and ClientCredentials.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.1.1 168 6/20/2019
2.1.0 332 12/8/2018