From 34e4a3606d5c1b235eaf4aa6cd4ee0dfc64b23cb Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Mon, 18 Jun 2012 17:11:18 -0700 Subject: [PATCH] updated genKeyPair IdP callback to pass a string pubkey, not a JSON object --- example/primary/provision.html | 2 +- resources/static/shared/provisioning.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/primary/provision.html b/example/primary/provision.html index 94395c345..c8b7cd583 100644 --- a/example/primary/provision.html +++ b/example/primary/provision.html @@ -33,7 +33,7 @@ $.ajax({ url: '/api/cert_key', data: JSON.stringify({ - pubkey: pubkey, + pubkey: JSON.parse(pubkey), duration: cert_duration }), type: 'POST', diff --git a/resources/static/shared/provisioning.js b/resources/static/shared/provisioning.js index 177ad14a6..fa91170c2 100644 --- a/resources/static/shared/provisioning.js +++ b/resources/static/shared/provisioning.js @@ -72,7 +72,7 @@ BrowserID.Provisioning = (function() { trans.delayReturn(true); jwcrypto.generateKeypair({algorithm: "DS", keysize: BrowserID.KEY_LENGTH}, function(err, kp) { keypair = kp; - trans.complete(keypair.publicKey.toSimpleObject()); + trans.complete(keypair.publicKey.serialize()); }); }); -- GitLab