Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

IDMOB-10 Functionality for Apple account consolidation #39

Merged
merged 1 commit into from
Mar 13, 2017

Conversation

danielschibsted
Copy link
Contributor

When moving an app from one Apple account to another
it's not possible to keep the keychain data.
If the data is not there, a logged in user will not be logged in anymore.

To overcome this the move can be planned in 2 steps:

  1. In the first step an app is upgraded on the old Apple account
    with a mode SPiDTokenStorageModeMigratePreITunesAccountMove to export keychain data to NSUserDefaults.
  2. The next step is an app upgrade on to the new Apple account
    with a mode SPiDTokenStorageModeMigratePostITunesAccountMove to import data from NSUserDefaults.

Both versions should stay in the store for a while
until the most users are able to upgrade and run it.

@danielschibsted
Copy link
Contributor Author

@mikaoj check this out please.
This is already reviewed by @aliak00
https://jira.schibsted.io/browse/IDMOB-10

@mikaoj mikaoj self-assigned this Mar 8, 2017
@mikaoj
Copy link
Contributor

mikaoj commented Mar 9, 2017

Looks solid...would it at all be possible to write tests for this..?

@danielschibsted
Copy link
Contributor Author

Added a commit with tests.

@aliak00
Copy link

aliak00 commented Mar 9, 2017

👍 🍰

When moving an app from one Apple account to another
it's not possible to keep the keychain data.
If the data is not there, a logged in user will not be logged in anymore.

To overcome this the move can be planned in 2 steps:
1. In the first step an app is upgraded on the old Apple account
  with a mode SPiDTokenStorageModeMigratePreITunesAccountMove to export keychain data to NSUserDefaults.
2. The next step is an app upgrade on to the new Apple account
  with a mode SPiDTokenStorageModeMigratePostITunesAccountMove to import data from NSUserDefaults.

Both versions should stay in the store for a while
until the most users are able to upgrade and run it.

Tests:
* SPiDTokenStorageTests
* SPiDTokenStorageUserDefaultsBackendTests
@mikaoj mikaoj merged commit a5f90b1 into schibsted:master Mar 13, 2017
@mikaoj
Copy link
Contributor

mikaoj commented Mar 13, 2017

Great, thanks! I'll try to tag and push a version later today! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants