Created
March 15, 2012 20:48
-
-
Save ozten/2046810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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