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
This is a nearly feature-complete implementation of draft -07, including all test vectors.
3
+
This is a nearly feature-complete implementation of draft -08, including all test vectors.
4
4
5
5
### Notes and Missing Features
6
6
* The `Accept-Signature` header.
7
7
* Inclusion of `Signature` and `Signature-Input` as trailers is optional and is not yet implemented.
8
-
* Extracting specialty components from the "related request". See [related issue](https://github.com/httpwg/http-extensions/issues/1905).
8
+
* Extracting derived components from the "related request". See [related issue](https://github.com/httpwg/http-extensions/issues/1905).
9
9
* In responses, when using the "wrapped handler" feature, the `Content-Type` header is only signed if set explicitly by the server. This is different, but arguably more secure, than the normal `net.http` behavior.
10
-
*The `sf` parameter, and in particular behavior when it is *not* given.
10
+
*Test vectors are still verified to -07, update to -08 is pending.
wantSignatureInput: "\"x-ows-header\": Leading and trailing whitespace.\n\"x-obs-fold-header\": Obsolete line folding.\n\"cache-control\": max-age=60, must-revalidate\n\"example-dictionary\": a=1, b=2;x=1;y=2, c=(a b c)\n\"@signature-params\": (\"x-ows-header\"\"x-obs-fold-header\"\"cache-control\"\"example-dictionary\");alg=\"hmac-sha256\";keyid=\"test-key-hmac\"",
1283
1295
wantErr: false,
1284
1296
},
1297
+
{
1298
+
name: "reserialized dictionary headers, Sec. 2.1.2",
wantSignatureInput: "\"cache-control\": max-age=60, must-revalidate\n\"example-dictionary\";key=\"a\": 1\n\"example-dictionary\";key=\"b\": 2;x=1;y=2\n\"example-dictionary\";key=\"c\": (a b c)\n\"@signature-params\": (\"cache-control\"\"example-dictionary\";key=\"a\"\"example-dictionary\";key=\"b\"\"example-dictionary\";key=\"c\");alg=\"hmac-sha256\";keyid=\"test-key-hmac\"",
0 commit comments