Skip to content

Commit e0d448c

Browse files
authored
Webhook: clarify behaviour if no secret is set
1 parent a0b95ac commit e0d448c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ $client->customers()->magentoLegacyKeys()->remove($customerId, $publicKey);
560560

561561
### Validate incoming webhook payloads
562562

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.
563+
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.
564564

565565
```php
566566
$request = /** any Psr7 request */;

0 commit comments

Comments
 (0)