Browse files

Merge pull request #12 from benadida/master

IdP protocol compatibility
  • Loading branch information...
2 parents afbd66d + 38a829f commit 380cbef66af5850ffb808d487cc9df1a4828a5d1 @lloyd lloyd committed Jun 23, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 static/browserid/provision.html
View
3 static/browserid/provision.html
@@ -19,6 +19,9 @@
// Awesome! The user is authenticated as who we want to provision. let's
// generate a keypair
navigator.id.genKeyPair(function(pubkey) {
+ if (typeof(pubkey) == "string")
+ pubkey = JSON.parse(pubkey);
+
// finally, once we have a public key from the browser, we'll certify it, and
// go pass it back
$.ajax({

0 comments on commit 380cbef

Please sign in to comment.