Support multiple hashing algorithms, drop .NET 4.6.1 support
New Features
- Hash algorithm in header by @meinsiedler in #17
- The default request body hashing method is now SHA-256.
Breaking Changes
- Drop support for .NET 4.6.1 by @meinsiedler in #16
ApiKeyDelegatingHandler
constructor with inner delegating handler: Order of parameters changed. The innerHttpMessageHandler
is now the first constructor parameter.
Upgrade guide
With #17 it is now possible to specify the hashing algorithm to be used. If you have used this library in an older version before, we recommend the following upgrade path:
- Update the server's NuGet package softaware.Authentication.Hmac.AspNetCore to latest version. This version is backwards compatible with an older version of the client.
- Update the client's NuGet package softaware.Authentication.Hmac.Client to latest version after the server has been deployed with the latest version. This version now uses SHA-256 request body hashing by default.
With this approach, no breaking changes occur at the deployed environment as the backwards compatibility is ensured.
Full Changelog: 3.4.0-hmac...4.0.0