-
Notifications
You must be signed in to change notification settings - Fork 37
chore: unified cookie storage - WPB-23404 #4596
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
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
44adb86
Make KeychainProtocol API not async
samwyndham c3aa3c2
Delete a couple of unused Failures
samwyndham ea027eb
Make storing a cookie safer and faster in the upload case
samwyndham 4461614
Refactor `CookieStorage`
samwyndham 8a1a588
Make CookieStorage an class instead of actor and have a non async API
samwyndham 3a14c6d
Protect access to keychain with lock
samwyndham 5fd2073
Split CookieStorage into two objects to simplify code around locking
samwyndham f671c33
Delete ZMPersistentCookieStorageMigrator
samwyndham da85f89
Delete `ZMPersistentCookieStorage.deleteAllKeychainItems`
samwyndham 21b2e5a
Revert "Delete `ZMPersistentCookieStorage.deleteAllKeychainItems`"
samwyndham fc8b674
Remove legacy code paths as user id is never nil
samwyndham d0d3386
Remove cookieKey property
samwyndham 3cf584e
Delete serverName property
samwyndham 1cdc0d5
Add some additional tests as preparation for refactoring ZMPersistent…
samwyndham 6d49a44
Introduce PersistentCookieStorage
samwyndham 6aa51aa
Use `PersistentCookieStorage` instead of `ZMPersistentCookieStorage`
samwyndham a8cc1b6
Delete ZMPersistentCookieStorage
samwyndham 4fdf3d4
Add cache to CookieStorage
samwyndham 7b16072
Split authenticationCookieData into a getter and setter
samwyndham 208d4f7
Use setAuthenticationCookies instead of setAuthenticationCookieData
samwyndham dceae70
Make authenticationCookieData private and authenticationCookies public
samwyndham b1d32e8
Delete `Assembly`.
samwyndham 92de50e
Introduce `CookieStorageCache`
samwyndham 519b73a
Small refactor and bug fix
samwyndham 07b5a61
Remove static PersistentCookieStorage.storage(forUserIdentifier:useCa…
samwyndham ec7ef45
Pass CookieStorage into PersistentCookieStorage in init
samwyndham 558ca00
Use CookieStorage in PersistentCookieStorage and simplify API
samwyndham 52ab505
Remove cookie policy methods
samwyndham 8315271
Fix typo
samwyndham 092c542
Remove useCache parameter
samwyndham 2f54ab1
Delete hasAccessibleAuthenticationCookieData
samwyndham 70a3c75
Make PersistentCookieStorageTests swift
samwyndham b684ba3
Fix compile error
samwyndham 3206462
Move CookieProvider to WireSyncEngine
samwyndham 43505b0
[WIP] Move PersistentCookieStorage to WireNetwork.
samwyndham 245d030
Revert "[WIP] Move PersistentCookieStorage to WireNetwork."
samwyndham dac875d
Duplicate CookieStorageProtocol
samwyndham 2668b84
Rename PersistentCookieStorage -> LegacyCookieStorage
samwyndham a6a47fc
Make LegacyCookieStorage.removeCookies match CookieStorage.removeCookies
samwyndham e893ac7
Delete LegacyCookieStorage.authenticationCookies()
samwyndham 2f5e695
Make LegacyCookieStorage.setAuthenticationCookies match CookieStorage…
samwyndham 5c821b5
Fix share extension build error
samwyndham 33a2b9e
Delete `LegacyCookieStorageProtocol`
samwyndham d731610
Make authenticationCookieExpirationDate non obj-c
samwyndham caafc43
Add new tests for LegacyCookieStorage
samwyndham 48908dc
Refactor LegacyCookieStorage
samwyndham e3b1247
Delete old LegacyCookieStorage tests
samwyndham 8b0e527
Introduce CookieStorageEpoch
samwyndham 1247194
Use epoch stored in Keychain metadata to validate cache
samwyndham e8ce723
Refactor so that CookieStorage is for all users, not a single user
samwyndham 06cb435
Have `CookieStorage` owned by AppDelegate
samwyndham 037967a
Introduce CookieStorageIntegrationTests and add tests for store cookies
samwyndham 3bd61ac
Test fetching cookies
samwyndham 39d1fb1
Test removing cookies
samwyndham d328913
Add tests for cookie caching
samwyndham 742002d
Small refactor
samwyndham d77d4bb
Test fetching with different encryption key
samwyndham f2557df
Delete old CookieStorageTests & rename.
samwyndham 0364d42
Small refactor of CookieStorage
samwyndham 5e86906
LInt & format
samwyndham 5d42f9a
Fix linting error
samwyndham 3c43a58
Remove incorrect #if DEBUG
samwyndham d023d2e
Log some errors as critical
samwyndham ae59f19
Add ticket number to comment
samwyndham 5e92b0a
Lint & format
samwyndham 0e0f57e
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
samwyndham 5443b40
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
samwyndham 84eafe5
chore: test re-login with multiple backends - WPB-24958 (#4619)
samwyndham 1ed1392
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
samwyndham 2ced36f
Fix commented out code
samwyndham 799f528
Make some errors safe public.
samwyndham 498fe0f
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
samwyndham 2e07111
Fix compile issue in release builds
samwyndham 441b964
Fix crash when missing HTTPResponse
samwyndham 98643d8
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
samwyndham ed8bd04
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
johnxnguyen 31542ec
fix tests
johnxnguyen ca45899
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
johnxnguyen 92e9e69
Merge branch 'develop' into chore/review-cookie-handling-WPB-23404
samwyndham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.