@@ -47,7 +47,7 @@ Content-Type: application/json
4747 { "w" : 300 , "h" : 250 },
4848 { "w" : 320 , "h" : 50 }
4949 ]
50- },
50+ }
5151 }
5252 ],
5353 "ext" : {
@@ -65,23 +65,23 @@ Content-Type: application/json
6565
6666### Request Fields
6767
68- | Field | Type | Required | Description |
69- | ------------------------------ | ------- | -------- | ------------------------------------- |
70- | ` id ` | string | Yes | Request ID |
71- | ` imp ` | array | Yes | Array of impressions (min 1) |
72- | ` imp[].id ` | string | Yes | Impression ID |
73- | ` imp[].banner ` | object | Yes\* | Banner object (\* or other media type) |
74- | ` imp[].banner.w ` | integer | No | Width in pixels |
75- | ` imp[].banner.h ` | integer | No | Height in pixels |
76- | ` imp[].banner.format ` | array | No | Array of size objects |
77- | ` ext.trusted_server.version ` | string | No | Signing protocol version (` 1.1 ` ) |
78- | ` ext.trusted_server.signature ` | string | No | Signature for canonical payload |
79- | ` ext.trusted_server.kid ` | string | No | Key ID used for signature |
80- | ` ext.trusted_server.request_host ` | string | No | Host included in signed payload |
81- | ` ext.trusted_server.request_scheme ` | string | No | Scheme included in signed payload |
82- | ` ext.trusted_server.ts ` | integer | No | Unix timestamp (milliseconds) |
83- | ` site ` | object | No | Site information |
84- | ` site.domain ` | string | No | Domain for signature verification |
68+ | Field | Type | Required | Description |
69+ | ----------------------------------- | ------- | -------- | ------------------------------------- |
70+ | ` id ` | string | Yes | Request ID |
71+ | ` imp ` | array | Yes | Array of impressions (min 1) |
72+ | ` imp[].id ` | string | Yes | Impression ID |
73+ | ` imp[].banner ` | object | Yes\* | Banner object (\* or other media type) |
74+ | ` imp[].banner.w ` | integer | No | Width in pixels |
75+ | ` imp[].banner.h ` | integer | No | Height in pixels |
76+ | ` imp[].banner.format ` | array | No | Array of size objects |
77+ | ` ext.trusted_server.version ` | string | No | Signing protocol version (` 1.1 ` ) |
78+ | ` ext.trusted_server.signature ` | string | No | Signature for canonical payload |
79+ | ` ext.trusted_server.kid ` | string | No | Key ID used for signature |
80+ | ` ext.trusted_server.request_host ` | string | No | Host included in signed payload |
81+ | ` ext.trusted_server.request_scheme ` | string | No | Scheme included in signed payload |
82+ | ` ext.trusted_server.ts ` | integer | No | Unix timestamp (milliseconds) |
83+ | ` site ` | object | No | Site information |
84+ | ` site.domain ` | string | No | Domain for signature verification |
8585
8686### Size Resolution
8787
@@ -223,7 +223,14 @@ Mocktioneer supports optional request signature verification. When `site.domain`
223223The signed payload is canonical JSON:
224224
225225``` json
226- {"version" :" 1.1" ,"kid" :" ..." ,"host" :" ..." ,"scheme" :" https" ,"id" :" ..." ,"ts" :1706900000000 }
226+ {
227+ "version" : " 1.1" ,
228+ "kid" : " ..." ,
229+ "host" : " ..." ,
230+ "scheme" : " https" ,
231+ "id" : " ..." ,
232+ "ts" : 1706900000000
233+ }
227234```
228235
229236The JWKS is fetched from ` https://{site.domain}/.well-known/trusted-server.json ` . Verification failures are logged but don't reject the request.
0 commit comments