Marketplace/FirefoxAccounts: Difference between revisions

Line 28: Line 28:
On Firefox 2.0, we'll use the native Firefox Accounts.
On Firefox 2.0, we'll use the native Firefox Accounts.


* TODO: figure out the flow, but it sounds like its very much a navigator.id kind of flow.
* Write up here: https://id.etherpad.mozilla.org/tracing-mozId-API
* See also: https://github.com/mozilla-b2g/gaia/blob/master/dev_apps/uitest/js/API/fxa.js#L29
 
* Login
** Add in UA/OS sniffing to detect Firefox OS, if its not Firefox OS 2.0, we assume native Firefox Accounts is not available and fall back to the web.
** Call navigator.id, adding in: wantIssuer: 'firefox-accounts'
** When firefox accounts returns, create or sync up with the existing account (we already do this)
** Create the session
* Logout
** Nuke the local session


== Payments ==
== Payments ==
Confirmed users
1,158

edits