Commit Graph

69 Commits

Author SHA1 Message Date
Sasha Weiss
a3f12e3f55
Reclaim username during registration 2024-01-17 16:59:33 -08:00
Max Radermacher
3f2836733e
Make profile update methods into instance methods 2024-01-09 11:09:14 -06:00
Harry
9891ceb13a
Clean up PreKeyManager to remove twenty thousand layers of abstraction 2023-12-12 13:44:00 -08:00
Harry
b286715d6e
[Atomic device creation/linking 90 day timer] Delete legacy prekey rotation method and usages 2023-11-27 12:27:05 -08:00
Harry
9eb0ad3dde
Delete AccountManager 2023-11-21 12:37:54 -08:00
Harry
9f1c8e3dd0
Refactor AccountManager's finishProvisioningSecondary method 2023-11-21 12:37:00 -08:00
Harry
f392e20de2
Always set master key (falling back to local) when registering 2023-11-20 12:28:22 -08:00
Max Radermacher
600eef4bec
Replace Curve25519Kit with LibSignal 2023-10-31 14:18:22 -05:00
Max Radermacher
fd9c5e8c64
Make isPrimaryDevice available to contact merges 2023-10-23 13:27:25 -05:00
Max Radermacher
59478094ed
Consolidate phone number privacy feature flags 2023-10-17 18:24:52 -05:00
Harry
e3d39d9fc0
Launch KBS into the sun 2023-10-17 11:20:27 -07:00
Harry
aa0e250cb7
[Death to TSAccountManager, long live TSAccountManager][9] Migrate usages of old TSAccountManager to new 2023-10-05 08:56:08 -07:00
Max Radermacher
9b86028863
[ServiceId] Update registration code 2023-08-21 17:29:37 -05:00
Pete Walters
0818e359d5
Update PniHelloWorld to add PQ keys 2023-08-15 15:37:20 -05:00
Harry
d14e4a34b9
Atomic account creation pt 2: Add prekey fields and enable atomic account creation 2023-08-09 16:24:31 -07:00
Harry
f9cecdfb2b
Split apart PreKeyTask to allow independently generating, uploading, and persisting prekeys 2023-08-09 16:23:32 -07:00
Harry
8c799c0637
Atomic account creation pt1: Apns tokens in account creation request 2023-08-09 16:21:12 -07:00
Harry
cc436e0db8
Support registering with a landline 2023-08-03 09:42:07 -07:00
Max Radermacher
de902f37af
[ServiceId] Update registration 2023-08-02 16:53:51 -05:00
Pete Walters
4356b505b2
Migrate TSPreKeyManager to Swift 2023-07-27 21:02:33 -05:00
Max Radermacher
b593cba603
Adopt randomForTesting/constantForTesting 2023-07-26 16:29:14 -05:00
Harry
8392ba6ae7
Enable SVR2 feature flag (remote config still active) 2023-06-14 10:39:49 -07:00
Harry
b9bf24eb4d
Allow for nullable svr credentials in registration reglock response 2023-06-05 14:17:52 -07:00
Harry
c912ed67a9
Update rules for SVR2 rollout 2023-06-02 09:52:31 -07:00
Harry
12db9af53f
Start using SVR2 auth credentials 2023-05-26 15:39:52 -07:00
Harry
cc67fe55ad
SVR2 implementation part 1: local operations 2023-05-23 12:26:25 -07:00
Harry
e706738e2e
Handful of registration fixes 2023-05-18 18:15:39 -04:00
Harry
bbbaab9f82
Add SVRAuthCredential 2023-05-16 13:59:52 -07:00
Harry
1bd1354a1d
Rename KeyBackupService protocol to SecureValueRecovery 2023-05-12 10:13:46 -07:00
Evan Hahn
d9d6ce3ea4
Move AppExpiry off Dependencies and NSObject 2023-04-20 12:46:21 -05:00
Harry
d29cdfbc03
Use appropriate filters for registration PIN customer support emails 2023-04-18 09:23:06 -07:00
Max Radermacher
a8511014cb
Use LocalIdentifiers in Storage Service 2023-04-14 10:20:58 -07:00
Harry
a7047fd56e
Catch e164 drift during re-reg and correct it 2023-04-06 14:55:30 -05:00
Evan Hahn
5cd752cb97 Remove gifting flags; it's always enabled
This change should have no user impact. I removed remote config flags
and dealt with all the fallout from that change.
2023-04-06 13:56:42 -05:00
Harry
b07c02d791
Prevent looping when hitting reglock in new registration 2023-03-30 08:55:29 -05:00
Max Radermacher
aaf1d0e0b6
Clean up SignalRecipient create & fetch APIs 2023-03-29 18:40:05 -07:00
Harry
5e37c2f8f9
Updates for verification code entry screen
* Move resend code buttons above keyboard

* add showHelpText to verification code screen state

* hook up help button, does nothing yet

* show help bottom sheet

* lint

* pr feedback
2023-03-28 17:31:58 -07:00
Harry
4f01be0082
Clean up some error handling for registration verification code exhausting attempts
* show back to back errors on verification code screen

* handle verification code attempts exhausted

* let the user resend a code after submission attempts are exhausted

* clear last digit after an incorrectly entered verification code

* wipe errors and allow proceeding when changing e164

* lint
2023-03-28 17:06:29 -07:00
Harry
3a78f30ed9
Registration cleanup
* Don't wipe local kbs state when kbs stuff fails for change number; its still valid for the old number

* remove remaining error sheet todos

* fix tests
2023-03-28 14:23:41 -07:00
Evan Hahn
95df4819da
New registration: "Skip and Create New PIN" action 2023-03-28 13:13:24 -05:00
Harry
7ba5f7384a
Handle being de-registered while still in the middle of registration
* put rereg mode params into a struct for sharability

* add step and UI handling for when we become deregistered during post-reg steps

* handle dereg when syncing push tokens

* show generic error on kbs backup failure

* handle dereg when restoring from kbs

* handle dereg during profile setup steps

* finalize pni stuff before deregistering

* add comment

* change debug fail to log

* Navigate to verification vc before showing popup so that we don't cancel the nav controller pop

* send a session sms code even if we get interrupted right after session creation

* improve state handling for initial session sms code

* nit: make var fileprivate

* show error when state changed on screen
2023-03-28 07:50:56 -07:00
Evan Hahn
f008d084c7
New registration: show screen when PIN guesses exhausted outside reglock 2023-03-27 15:20:29 -05:00
Harry
76b31992b2
Collected nits from registration PR stack
* nits

* remove obsolete assert
2023-03-24 19:40:58 -07:00
Harry
cd4d48eae2
Avoid wiping tsAccountManager state so we can exit reregistration
* add non-failable resetForReRegistration method to tsAccountManager

* shim out tsaccountmanager resetForReRegistration

* Don't wipe tsaccountmanager state in re-registration until necessary. gate exiting re-registration on this step

* fix tests
2023-03-24 13:48:44 -07:00
Harry
18594f53f1
Add buttons to exit re-registration and change number
* add UI to exit registration

* fix tests

* cleanup and dismiss context menu on dismiss view
2023-03-24 13:15:40 -07:00
Harry
4ee467be2b
Add screens unique to change number to new registration flow
* Add splash controller for change number flow

* Add copy of change number phone number entry controller

* add copy of change number confirmation view controller

* hook up change number phone number entry screens

* fix header color

* fix change number error view

* add some spacing before error label

* run auto genstrings

* actually fix string comment
2023-03-24 12:32:59 -07:00
Harry
c0444ff246
Wait a short time for push challenges before preferring captcha 2023-03-22 09:33:41 -07:00
Harry
68f34d10cd
Let the user change e164 after entering one in registration bravo
* Allow changing e164 after entering one + tests

* hook up back to change number from sms code verification screen

* nit

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>

* nit 2

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>

---------

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2023-03-22 07:52:34 -07:00
Evan Hahn
492284cab6
New registration: warn about remaining PIN attempts 2023-03-21 17:37:06 -05:00
Harry
0297ecf615
Test re-registration in RegCoordinatorTests
* parametrize reg coordinator tests

* test re-registration via test suite param
2023-03-19 16:07:25 -07:00