You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create or update a webhook in Private Packagist an optional secret can be set. This secret gets used to create a signature which is sent with each request in the headers as `Packagist-Signature`. The secret and signature can then be used on your server to validate that the request was made by Private Packagist. If no secret is set then no signature is sent.
577
+
578
+
```php
579
+
$request = /** any Psr7 request */;
580
+
$secret = 'webhook-secret';
581
+
$webhookSignature = new \PrivatePackagist\ApiClient\WebhookSignature($secret);
0 commit comments