FR911.Webhooks.Integration
2.1.25.225
dotnet add package FR911.Webhooks.Integration --version 2.1.25.225
NuGet\Install-Package FR911.Webhooks.Integration -Version 2.1.25.225
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FR911.Webhooks.Integration" Version="2.1.25.225" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FR911.Webhooks.Integration" Version="2.1.25.225" />
<PackageReference Include="FR911.Webhooks.Integration" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FR911.Webhooks.Integration --version 2.1.25.225
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FR911.Webhooks.Integration, 2.1.25.225"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FR911.Webhooks.Integration@2.1.25.225
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FR911.Webhooks.Integration&version=2.1.25.225
#tool nuget:?package=FR911.Webhooks.Integration&version=2.1.25.225
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
About
Supports Adding and verifying HMAC (Hash-based Message Authentication Code) for FirstResponse911 Webhooks.
Key Features
Provides extension methods for both HttpRequestMessage (sending via HttpClient) and HttpRequest (receiving via Controllers).
How To Use
For adding Hmac to a HttpRequestMessage:
var content = new StringContent(serializedPayload, System.Text.Encoding.UTF8, "application/json");
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, new Uri(targetUri, UriKind.RelativeOrAbsolute)) { Content = content };
request.AddHmac(base64EncodedSecret);
await _httpClient.SendAsync(request, webhookDef.HmacSecret, cancelToken);
For Verifying that a Received Webhook HttpRequest is Valid
See - HttpRequestRewindExtensions
// Enable Request Buffering so that Content can be read to compute HMAC
app.Use(async (context, next) => {
context.Request.EnableBuffering();
await next();
});
public class WebhookController : ControllerBase
{
private readonly WebhookConfig _webhookConfig;
public WebhookController(WebhookConfig config)
{
_webhookConfig = config;
}
[HttpPost("api/webhook")]
public async Task<IActionResult> Post([FromBody] MyWebhookObject notification)
{
var valid = await Request.ValidateHmac(_webhookConfig.SharedSecret);
if(!valid)
return Unauthorized();
// Process valid notification
return Ok();
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Azure.Messaging.ServiceBus (>= 7.20.1)
- FR911.Api.Client (>= 2.1.25.191)
- Microsoft.Extensions.Http.Resilience (>= 9.7.0)
- Microsoft.Extensions.Logging.Console (>= 9.0.7)
- ObjectsComparer (>= 1.4.1)
- System.Text.Json (>= 9.0.7)
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 |
|---|---|---|
| 2.1.25.225 | 207 | 8/19/2025 |
| 2.1.24.343 | 183 | 11/20/2024 |
| 2.1.24.342 | 205 | 11/20/2024 |
Loading failed
Added ServiceBus integration classes