Confirmed users
139
edits
Line 72: | Line 72: | ||
== Go live == | == Go live == | ||
* Message users, let them know its going to happen. | * Message users, let them know its going to happen. | ||
* Then delete all the old persona code. | * Then delete all the old persona code. | ||
== Flow == | |||
Flow diagram of actions requiring a user login such as purchasing or adding a review | |||
<gallery> | |||
File:FirefoxAccountsMigration.png|Example Flow | |||
</gallery> | |||
# Marketplace App is Web Site is launched | |||
# User initiates an action that would require the user to be logged in to Marketplace such as a purchase or user review. | |||
# Decision point: is user currently logged in to Firefox Accounts? | |||
## Yes - Go to (4) - check to see if first user has MP account using FxA. | |||
## No - Go to (6) - see if user should use web login or device login (this may not make a difference to MP if it is the same API) | |||
# Does FxA Marketplace account exist yet? | |||
## Yes - Go to (5) - all is cool, carry on | |||
## No - Go to to (7) - Does a previous marketplace account exist with Persona? | |||
# Carry On with purchase or user review | |||
# Check to see if MP is using Firefox OS and version is >=0 (uses on device fxa for fxos). Note, as this is an API, this may be irrelevant to MP so this step wouldn’t exist and steps (8) and (9) would be combined as a simple FxA Login. | |||
## Firefox OS and version is >= 2.0 - Go to (8) - login in using FxA on FxOS | |||
## Is not Firefox OS version >= 2.0 - Go to (9) - login using FxA for Web | |||
# Check to see if user has an existing MP account that has the same email address. This is so that we can now associate an existing account with the FxA created. What isn’t covered here is whether the user has a non-matching email. This case will need to be handled by exception. | |||
## Yes - Go to (10) - Associate MP account with FxA Account | |||
## No - Go to (11) - set flag so that this is now complete. | |||
# Login to Fx Accounts on FxOS | |||
## Success continue to (4) | |||
## Failure - go back to purchase or review screen with error message or retry. | |||
# Login to Fx Accounts using Web Login | |||
## Success continue to (4) | |||
## Failure - go back to purchase or review screen with error message or retry. | |||
# Associate existing MP with a new FxA account - since a Marketplace account exists that uses the same email address, associate data with new FxA account (if needed). On completeion Go to (11). | |||
# Now that an account is migrated (or may need to create a MP account), this doesn’t need to be done again in the future. So migration is complete. | |||
== Bugs == | == Bugs == |