From 0245dc77d3900956eb3d1b02db0d22b38eb46f2e Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Wed, 23 Nov 2011 15:02:44 -0700 Subject: [PATCH] update to new jwcrypto that fixes sloppy assertion expiration checking. closes #646 --- package.json | 2 +- tests/verifier-test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bef68d382..3c27030fc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ , "colors" : "0.5.0" , "sax" : "0.2.3" , "mimelib-noiconv" : "0.1.3" - , "jwcrypto": "https://github.com/mozilla/jwcrypto/tarball/adbdf9e2070" + , "jwcrypto": "https://github.com/mozilla/jwcrypto/tarball/8d0db7a0" , "postprocess": "0.0.3" , "urlparse": "0.0.1" , "uglifycss": "0.0.4" diff --git a/tests/verifier-test.js b/tests/verifier-test.js index b95eb646f..40563a914 100755 --- a/tests/verifier-test.js +++ b/tests/verifier-test.js @@ -617,7 +617,8 @@ suite.addBatch({ "fails with a nice error": function(r, err) { var resp = JSON.parse(r.body); assert.strictEqual(resp.status, 'failure'); - assert.strictEqual(resp.reason, 'assertion expiration date has passed'); + // XXX: the verifier should return a clearer error message + assert.strictEqual(resp.reason, 'verification failure'); } } }); -- GitLab