-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebhookOptions.cs
More file actions
31 lines (27 loc) · 1.05 KB
/
WebhookOptions.cs
File metadata and controls
31 lines (27 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace LicenseManagement.Client;
/// <summary>
/// Configuration options for webhook signature verification.
/// </summary>
public class WebhookOptions
{
/// <summary>
/// The configuration section name for binding from appsettings.
/// </summary>
public const string SectionName = "LicenseManagement:Webhook";
/// <summary>
/// The primary webhook signing secret.
/// This is provided when you create a webhook and should be stored securely.
/// </summary>
public string Secret { get; set; } = string.Empty;
/// <summary>
/// The secondary webhook signing secret, used during secret rotation.
/// When rotating secrets, both the old and new secrets are valid during the transition period.
/// </summary>
public string? SecondarySecret { get; set; }
/// <summary>
/// The tolerance for timestamp validation.
/// Requests with timestamps outside this window will be rejected to prevent replay attacks.
/// Default: 5 minutes.
/// </summary>
public TimeSpan? TimestampTolerance { get; set; }
}