Skip to content

Instantly share code, notes, and snippets.

@ozten
Created March 15, 2012 20:48
Show Gist options
  • Select an option

  • Save ozten/2046810 to your computer and use it in GitHub Desktop.

Select an option

Save ozten/2046810 to your computer and use it in GitHub Desktop.
In user.js At provisionPrimaryUser: function(email, info, onComplete, onFailure) {
User.primaryUserAuthenticationInfo(email, info, function(authInfo) {
alert('provisionPrimaryUser in Info callback authInfo=' + JSON.string
authInfo=provisionPrimaryUser in Info callback authInfo=
{
"cert":"eyJhbGci...reallybigstring...U7Hvn-drVg",
"authenticated":true,
"auth":"https://dev.clortho.mozilla.org/browserid/sign_in",
"prov":"https://dev.clortho.mozilla.org/browserid/provision",
"type":"primary",
"email":"[email protected]"
}
We go to do
persistEmailKeypair(email, "primary", authInfo.keypair, authInfo.cert,
Should I take authInfo.cert and extract the keypair? Or do I need to find where we got that earlier and pass it through the calls so it's present here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment