Closed Bug 1100232 Opened 10 years ago Closed 10 years ago

startOver() should not delete FxA credentials

Categories

(Firefox :: Sync, defect)

defect
Not set
normal
Points:
3

Tracking

()

RESOLVED FIXED
mozilla37
Iteration:
37.2

People

(Reporter: markh, Assigned: markh)

References

Details

Attachments

(1 file)

As part of Service.startOver(), we call identity.deleteSyncCredentials() - this deletes both the legacy and FxA credentials from the login manager. This is a problem for sync migration as we log the user into FxA *before* we call .startOver() - this means the credentials we just saved to the login manager are removed and the user will need to re-authenticate next start. The fix will be to have a different deleteSyncCredentials() for each of the 2 identity implementations and have each one delete only its credentials.
This creates 2 new functions, getSyncCredentialsHostsLegacy and getSyncCredentialsHostsFxA. getSyncCredentialsHosts() returns the combined value of these 2 functions, however, the identity function deleteSyncCredentials() now only deletes the credentials related to that specific identity. This means that on a .startOver() the FxA credentials remain in the login manager.
Attachment #8526557 - Flags: review?(rnewman)
Assignee: nobody → mhammond
Status: NEW → ASSIGNED
Points: --- → 3
Flags: qe-verify-
Flags: firefox-backlog+
Iteration: --- → 36.3
Iteration: 36.3 → 37.1
Comment on attachment 8526557 [details] [diff] [review] 0010-Bug-1100232-startOver-should-not-delete-FxA-credenti.patch Review of attachment 8526557 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the delayed review!
Attachment #8526557 - Flags: review?(rnewman) → review+
Iteration: 37.1 → 37.2
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: