Skip to content

Commit a0b95ac

Browse files
authored
Webhook: add information on where to find the secret and how to use it
1 parent 8d19e84 commit a0b95ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ $client->customers()->magentoLegacyKeys()->remove($customerId, $publicKey);
559559
```
560560

561561
### Validate incoming webhook payloads
562+
563+
When you create or update a webhook in Private Packagist an optional secret can be set. This secret gets used to create a hash 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 reuqest was made by Private Packagist.
564+
562565
```php
563566
$request = /** any Psr7 request */;
564567
$secret = 'webhook-secret';

0 commit comments

Comments
 (0)