Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

proposed change to IdP API: navigator.id.genKeyPair should return string, not object

9 views
Skip to first unread message

Jedediah Parsons

unread,
Jun 4, 2012, 1:33:12 PM6/4/12
to dev-id...@lists.mozilla.org


The function navigator.id.genKeyPair(function(pubkey) {...}) currently calls back with an object. We would like to propose that this function should call back with a json string instead.

There are two compelling reasons for doing this:

1. It makes it easier to marshal data with native, non-JS code (e.g., a native browser implementation)

2. It is consistent with the rest of the IdP API, in which we work with strings, not objects.

This change would affect all IdPs.

This would not affect the RP API.

Thoughts? Objections?

(Tracking the issue here: https://github.com/mozilla/browserid/issues/1678)

Cheers,
Jed

0 new messages