Marketplace/FirefoxAccounts

From MozillaWiki
Jump to navigation Jump to search

This page discusses how we'll integrate Firefox Accounts with the Marketplace, which currently uses Persona.

Marketplace

For the web

Because Marketplace will have to work on Firefox OS 1.0 - 1.4, Android and Desktop, the primary Firefox Accounts flow will be the web based flow.

Documentation: https://github.com/mozilla/fxa-oauth-server/blob/master/docs/api.md

Sample application: https://123done.dev.lcip.org/

For Firefox OS 2.0

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.

Payments

Note: Firefox Accounts does not allow unverified accounts.

  • Login
    • As above for Firefox for the web.
  • Reset PIN
    • Log the user out
    • Restart the payment flow

Migration

Persona users allowed users to login with unverified emails, Firefox Accounts does not. If a user has an unverified email they will have to log in to Firefox Accounts with a new email. In this case the record of paid apps on the server will be inaccurate, they haven't paid for an app. This will never really affect a user until they try to purchase a previously installed app.

Note: this currently affects users anyway, but Firefox OS accounts by forcing new accounts is more likely to trigger it.

  • Add in a move purchase page to the admin lookup pages
    • Takes two user accounts, listing all purchases
    • Moves all app purchases from account A to account B