From 8d92ad35339ce29be8822ba0c3819e7fb8786fc0 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 8 Apr 2025 18:15:00 +0200 Subject: [PATCH] backend: Add X-Signature and X-Timestamp parameters for webhook verification --- backend/openapi/components/parameters/x-signature.yaml | 6 ++++++ backend/openapi/components/parameters/x-timestamp.yaml | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 backend/openapi/components/parameters/x-signature.yaml create mode 100644 backend/openapi/components/parameters/x-timestamp.yaml diff --git a/backend/openapi/components/parameters/x-signature.yaml b/backend/openapi/components/parameters/x-signature.yaml new file mode 100644 index 0000000..7c1f4ec --- /dev/null +++ b/backend/openapi/components/parameters/x-signature.yaml @@ -0,0 +1,6 @@ +name: X-Signature +in: header +description: HMAC signature for webhook verification +example: 1234567890abcdef +schema: + type: string diff --git a/backend/openapi/components/parameters/x-timestamp.yaml b/backend/openapi/components/parameters/x-timestamp.yaml new file mode 100644 index 0000000..37668fd --- /dev/null +++ b/backend/openapi/components/parameters/x-timestamp.yaml @@ -0,0 +1,6 @@ +name: X-Timestamp +in: header +description: Timestamp of the webhook event (in Unix Epoch seconds) +example: 1678901234 +schema: + type: string