2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

hmac verification

This commit is contained in:
Matthias
2021-09-12 16:49:47 +02:00
parent 5bf9561984
commit 68ca672937
3 changed files with 38 additions and 0 deletions

View File

@ -1177,6 +1177,7 @@ class WebhookEndpoint(models.Model):
active: Is this webhook active?,
user: User associated with webhook,
token: Token for sending a webhook,
secret: Shared secret for HMAC verification,
"""
endpoint_id = models.CharField(
@ -1215,3 +1216,10 @@ class WebhookEndpoint(models.Model):
help_text=_('Token for access'),
default=uuid.uuid4,
)
secret = models.CharField(
max_length=255,
blank=True, null=True,
verbose_name=_('Secret'),
help_text=_('Shared secret for HMAC'),
)