Skip to content

Use Keychain for credentials #1131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Oct 12, 2023
Merged

Use Keychain for credentials #1131

merged 27 commits into from
Oct 12, 2023

Conversation

zeitschlag
Copy link
Contributor

@zeitschlag zeitschlag commented Oct 11, 2023

  • Basically the performance_experiments-branch, but with CoreData on disk instead of in memory and with the most recent develop merged.
  • Migration: Move the credentials from CoreData to Keychain (and store in UserDefaults if migration was successful)
  • Store new credentials in Keychain right away

Side Effects

  • Kill some MainThread-warnings

@zeitschlag zeitschlag force-pushed the move-credentials-to-keychain branch from ff15093 to 6df7cf8 Compare October 11, 2023 13:52
@zeitschlag zeitschlag marked this pull request as ready for review October 11, 2023 14:36
@zeitschlag zeitschlag requested a review from kimar October 11, 2023 14:36
@zeitschlag zeitschlag added this to the 2023.14 milestone Oct 11, 2023
Copy link
Contributor

@kimar kimar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This is really nice and works as expected for me, tested the following scenarios:

  1. Installed current App Store with Logged in Accounts
  2. Installed this PR build -> Migrated as expected
  3. Uninstalled App
  4. Installed App Store build -> Asked to sign in
  5. Uninstalled App Store build
  6. Installed this PR build -> Instant sign in due to credentials being persisted in Keychain

LGTM to me 🚀

@zeitschlag zeitschlag merged commit 8381a44 into develop Oct 12, 2023
@zeitschlag zeitschlag deleted the move-credentials-to-keychain branch October 12, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants