Skip to content

Support multiple hashing algorithms, drop .NET 4.6.1 support

Compare
Choose a tag to compare
@meinsiedler meinsiedler released this 27 Mar 16:22
· 20 commits to master since this release
87cd8e0

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 inner HttpMessageHandler 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:

  1. 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.
  2. 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