Marketplace/FirefoxAccounts

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

Marketplace

General changes:

  • Add in sniffing to detect if native Firefox Accounts is present, see https://bugzilla.mozilla.org/show_bug.cgi?id=1009849
  • Alter the Firefox Account terms of service and privacy policy to include Marketplace information.
  • Security review for OAuth flow of the 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/

  • Set up a Marketplace account on the Firefox Account server, which contains all the account and redirect information.

For Firefox OS 2.0

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

  • Login
    • Call navigator.id, adding in: wantIssuer: 'firefox-accounts'
    • When firefox accounts returns, create or sync up with the existing account (we already do this)
    • Matches the email up with users account in zamboni, or creates an account and signs the user in, by creating a session.
  • Logout
    • Nuke the local session

Payments

  • Login
    • As above for Firefox Accounts for the web or Firefox OS 2.0 as appropriate.
  • Reset PIN
    • Firefox Accounts for the web
      • Log the user out by nuking the local session, not logging them out of Firefox OS
      • Login as above for Firefox for the web or Firefox OS 2.0 as appropriate
      • When Firefox Accounts returns, assert the email addresses match (already done)
      • Restart the payment flow
    • Native Firefox Accounts

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. 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

Go live

  • Message users, let them know its going to happen.
  • Then delete all the old persona code.

Bugs

Tracking bug: 1007956.

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);