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
|`prefix`|`string`| no | derived from `algorithm`| String prepended to the hex hash before comparison (e.g. `sha256=`). Defaults are derived automatically from the chosen algorithm. |
86
+
| Field | Type | Required | Default | Description |
|`prefix`|`string`| no | derived from `algorithm`| String prepended to the hex hash before comparison (e.g. `sha256=`). Defaults are derived automatically from the chosen algorithm. |
59
92
60
93
```json
61
94
{
62
95
"secret": "your-webhook-secret",
63
-
"signature_header": "X-Yousign-Signature-256",
96
+
"signature_header": "X-Hub-Signature-256",
64
97
"algorithm": "HmacSHA256",
65
98
"prefix": "sha256="
66
99
}
@@ -77,11 +110,11 @@ $ curl -X POST 'http://otoroshi-api.oto.tools:8080/api/routes' \
77
110
78
111
## Responses
79
112
80
-
| Status | Body | Meaning |
81
-
|--------|------|---------|
82
-
| forwarded to backend | – | Signature is valid, request is passed through unchanged. |
83
-
|`401 Unauthorized`|`{ "error": "missing X-Yousign-Signature-256 header" }`| The header was not present in the incoming request. |
84
-
|`401 Unauthorized`|`{ "error": "invalid signature" }`| The computed HMAC does not match the header value. |
0 commit comments