Commit graph

1055 commits

Author SHA1 Message Date
manuroe
c3818a0997
Update Riot/Modules/AuthenticatedSession/AuthenticatedSessionViewControllerFactory.swift
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-26 12:21:16 +02:00
manuroe
bfdd061d67 SecurityVC: Start cleaning 2020-06-26 07:56:56 +02:00
manuroe
d0de69976e AuthenticatedSessionViewControllerFactory: Add hasSupport 2020-06-26 07:56:10 +02:00
manuroe
d8b09a8e42 Security: Plug UX for cross-signing setup
part of #3299
2020-06-26 07:42:37 +02:00
manuroe
c162cb6a78 Add AuthenticatedSessionViewControllerFactory to set up a authenticated flow for a given CS API request 2020-06-26 07:38:38 +02:00
manuroe
26995effcb SecurityVC: Plug Secure Backup setup flow 2020-06-25 20:23:40 +02:00
SBiOSoftWhare
c625ea42af Fix refactoring. 2020-06-25 17:52:36 +02:00
SBiOSoftWhare
d7dbd13cf8 Fix Manu's remarks. 2020-06-25 17:31:46 +02:00
manuroe
4207ec4be2 Merge branch 'develop' into riot_3296 2020-06-25 17:20:47 +02:00
manuroe
7f024a6236
Update Riot/Modules/Settings/Security/SecurityViewController.m
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-25 17:17:04 +02:00
manuroe
37f69da7ec
Update Riot/Modules/Settings/Security/SecurityViewController.m
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-25 17:16:51 +02:00
manuroe
1e564672c1
Update Riot/Modules/Settings/Security/SecurityViewController.m
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-25 17:16:44 +02:00
manuroe
af3ca7c92b
Update Riot/Modules/Settings/Security/SecurityViewController.m
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-25 17:16:32 +02:00
manuroe
f62e08778d
Update Riot/Modules/Settings/Security/SecurityViewController.m
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-25 17:16:25 +02:00
manuroe
7b72eb59ba
Update Riot/Modules/Settings/Security/SecurityViewController.m
Co-authored-by: SBiOSoftWhare <SBiOSoftWhare@users.noreply.github.com>
2020-06-25 17:16:03 +02:00
SBiOSoftWhare
9c060902c9 AuthenticationViewController: Fix refact. 2020-06-25 16:30:47 +02:00
SBiOSoftWhare
de1efde09e RecentsDataSource: Handle secure key backup banner display logic. 2020-06-25 16:01:32 +02:00
SBiOSoftWhare
8e1259ffa3 HomeVC: Handle secure setup key backup flow presentation. 2020-06-25 11:47:52 +02:00
SBiOSoftWhare
994d64ca20 MXSession+Riot: Use vc prefix as other extensions. 2020-06-25 10:23:24 +02:00
SBiOSoftWhare
f180ef30f1 Key backup banner: Update UI and strings. 2020-06-25 09:50:44 +02:00
SBiOSoftWhare
d4f1aef1fc
Merge branch 'develop' into riot_3344 2020-06-24 21:57:37 +02:00
SBiOSoftWhare
cd8c353972 Fix Nad's remarks. 2020-06-24 18:29:52 +02:00
manuroe
612fd7268d E2E by default: Do not bootstrap cross-signing automatically
if hs setting is disabled
2020-06-24 17:09:23 +02:00
manuroe
3159131651 E2E by default: Disable it if the HS admin disabled it
#3305
2020-06-24 17:08:14 +02:00
manuroe
1aa1de5d1c SecurityVC: Use NEW_CROSS_SIGNING_FLOW to not break things 2020-06-24 11:43:50 +02:00
manuroe
82acfd106c SecurityVC: Add warning if we do not have the MSK 2020-06-24 11:43:50 +02:00
manuroe
3266076065 SecurityVC: Add Secure backup status 2020-06-24 11:43:41 +02:00
SBiOSoftWhare
e54d8b10de Fix rebase. 2020-06-23 18:40:30 +02:00
SBiOSoftWhare
af43b42d34 Secure key backup: Handle secure key backup flow. 2020-06-23 18:31:52 +02:00
SBiOSoftWhare
43598c9593 Secrets setup: Handle set up recovery passphrase screen. 2020-06-23 18:31:52 +02:00
SBiOSoftWhare
95f628f1c0 Secrets setup: Handle set up recovery key screen. 2020-06-23 18:31:52 +02:00
SBiOSoftWhare
0f251aee4b Secure key backup: Handle setup introduction screen. 2020-06-23 18:31:52 +02:00
SBiOSoftWhare
ffdf54754f Secrets recover: Move files. 2020-06-23 18:31:52 +02:00
manuroe
21c2cdf430 SecurityVC: Add cross-signing reset. Stub things using test passwords 2020-06-19 09:32:27 +02:00
manuroe
294618935c SecurityVC: Delete a secure backup 2020-06-19 08:00:22 +02:00
manuroe
cfd7d27cb4 SecurityVC: PoC for secure backup settings 2020-06-18 15:51:06 +02:00
manuroe
f09a3f8069 SecurityVC: Factorise cell buttons 2020-06-18 11:47:53 +02:00
SBiOSoftWhare
17640b6f27
Merge pull request #3342 from vector-im/riot_3124
Connect/restore backup created with SSSS
2020-06-17 17:13:59 +02:00
SBiOSoftWhare
81d533c434 SecurityVC: Connect/restore key backup created with SSSS. 2020-06-15 16:30:58 +02:00
SBiOSoftWhare
55b0d14e14 Create SecretsRecoveryCoordinatorBridgePresenter. 2020-06-15 16:20:36 +02:00
SBiOSoftWhare
aff62c14fe Secrets recovery: Restore only key backup on SecretsRecoveryGoal.keyBackup. 2020-06-15 16:19:44 +02:00
SBiOSoftWhare
5c42f6027a KeyBackupRecoverCoordinatorBridgePresenter: Add possibility to push key backup recover flow from a UINavigationController. 2020-06-15 16:18:05 +02:00
SBiOSoftWhare
0c7c3cf57a KeyBackupRecoverCoordinator: Handle existing navigationRouter if needed. 2020-06-15 16:14:31 +02:00
SBiOSoftWhare
cdb6369231 MXRecoveryService: Add convenient var to return SecretsRecoveryAvailability. 2020-06-15 16:12:58 +02:00
ismailgulek
a0bd6db5e8
Check user in session before using userId 2020-06-12 15:07:26 +03:00
ismailgulek
f815db4246
Get inviter from invite event instead of looping members 2020-06-12 14:36:58 +03:00
SBiOSoftWhare
d4e39cb01e Secrets recovery: Handle MXRecoveryService errors in recovery view models. 2020-06-11 16:55:44 +02:00
SBiOSoftWhare
6c98628074 Secrets recovery: Update recovery with passphrase and recovery with key screens. 2020-06-11 13:21:47 +02:00
SBiOSoftWhare
1e90b8d154 Fix Manu's remarks 2020-06-10 17:06:47 +02:00
SBiOSoftWhare
477d8ddea5
Update Riot/Modules/SecretsRecovery/RecoverWithKey/SecretsRecoveryWithKeyViewController.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2020-06-10 13:56:51 +02:00
SBiOSoftWhare
48f6e03c36 KeyVerificationCoordinator: Handle secrets recovery flow from complete security. 2020-06-09 17:37:53 +02:00
SBiOSoftWhare
95456f1193 Complete security: Add recover secrets action. 2020-06-09 17:36:55 +02:00
SBiOSoftWhare
a22169598d Secrets recovery: Add SecretRecoveryCoordinator. 2020-06-09 17:15:37 +02:00
SBiOSoftWhare
a2f209c32e Secrets recovery: Implement secrets recovery with passphrase screen. 2020-06-09 17:11:53 +02:00
SBiOSoftWhare
b3048ea8c8 Secrets recovery: Implement secrets recovery with recovery key screen. 2020-06-09 17:02:17 +02:00
ismailgulek
7a94692002
Change issue link to Github 2020-06-05 18:16:29 +03:00
ismailgulek
f21a24867a
Do a temporary workaround for navigation bar background, fixes #3271 2020-06-05 17:49:13 +03:00
ismailgulek
879461d4f0
Merge branch 'develop' into xcode11
# Conflicts:
#	CHANGES.rst
2020-06-05 16:00:24 +03:00
SBiOSoftWhare
22cd459a94 SecurityVC: Remove MXCrossSigningStateCanCrossSignAsynchronously references. 2020-06-04 17:27:54 +02:00
manuroe
bf6c30cd00 Authentication: Redirect webview (SSO) javascript logs to native logs 2020-06-03 14:01:39 +02:00
manuroe
46516107cb Cross-signing: Remove the bootstrap when using SSO
It needs to done differently
2020-06-03 12:23:46 +02:00
manuroe
b9e58025f9 Remove useless dispatch_async 2020-06-03 11:24:40 +02:00
manuroe
446244c726 Cross-signing: Use a compilation flag while riot-web is not ready 2020-06-03 09:26:13 +02:00
manuroe
b69e1885a2 Cross-Signing: Bootstrap when using SSO for registration
I have not tested it
2020-06-03 09:23:27 +02:00
manuroe
98f95e8a4e Cross-signing: Bootstrap cross-sign on registration (and login if applicable)
#3292

This action is now invisible to the user.
2020-06-02 14:19:37 +02:00
ismailgulek
cace654310
Fix PushKit references with their APNS correspondents 2020-06-01 16:30:57 +03:00
ismailgulek
85a119678c
Use APNS instead of PushKit, fixes #3291 2020-06-01 11:12:57 +03:00
ismailgulek
0d73c8dccf
Merge pull request #3268 from vector-im/remove_pushkit
Remove PushKit
2020-05-29 12:34:20 +03:00
SBiOSoftWhare
73ab5fe685 Merge branch 'develop' into xcode11 2020-05-29 09:51:51 +02:00
SBiOSoftWhare
1607a6f32b CountryPickerViewController: Handle UISearchController search bar theme. 2020-05-29 09:36:34 +02:00
SBiOSoftWhare
b713293347 Fix some SwiftLint warnings. 2020-05-29 09:35:46 +02:00
SBiOSoftWhare
f1aae877bf SettingsVC: New phone number is invisible in dark theme (Fix #3218). 2020-05-28 18:49:48 +02:00
ismailgulek
ba50f47c6b
Remove some commented code
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-26 18:04:18 +03:00
ismailgulek
53bb87dafa
Create notification service extension
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 14:27:30 +03:00
ismailgulek
7c3911f06d Replace deprecated MPMoviePlayerController with AVPlayerViewController, fixes #3081
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:12:56 +03:00
ismailgulek
6ea2ff36f7 Change childViewControllers to viewControllers
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:12:46 +03:00
ismailgulek
697ac5260a Change overridden methods for status bar style
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:12:46 +03:00
ismailgulek
e342deb72e Change all navigation controllers to RiotNavigationController's
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:12:46 +03:00
ismailgulek
95767ba452 Override preferredStatusBarStyle for missing pages and ensure setNeedsStatusBarAppearanceUpdate will be called
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:10:27 +03:00
ismailgulek
d476e20257 Cleanup code moved from willDisappear to didDisappear, fixes #3065
Signed-off-by: ismailgulek <gulekismail@gmail.com>
2020-05-22 12:05:45 +03:00
ismailgulek
a382538de5
Adapt UIWebView changes to AuthenticationViewController, fixes #3057 2020-05-13 15:44:18 +03:00
manuroe
66c952190d AuthenticationVC: Fix crash due to update to WKWebView
The crash was:

```
2020-05-11 17:53:44.125128+0200 Riot[60416:899392] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Configuration cannot be nil'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010b0e98db __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x0000000109d3dac5 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010b0e9735 +[NSException raise:format:] + 197
	3   WebKit                              0x00000001080f112e -[WKWebView _initializeWithConfiguration:] + 88
	4   WebKit                              0x00000001080f35ab -[WKWebView initWithCoder:] + 131
2020-05-11 17:55:50 +02:00
manuroe
492839c06a BF: App asks to verify all devices on every startup for no valid reason
#3221

We do not care about local trust. Only cross-sign status counts now
2020-05-08 07:52:33 +02:00
manuroe
5c0f23b6e8
Merge pull request #3211 from vector-im/riot_3182
Self verify my old riots
2020-05-07 16:08:32 +02:00
SBiOSoftWhare
9275d19a03 Session verification: Cancel if device is not found. 2020-05-07 12:21:47 +02:00
SBiOSoftWhare
ba2f6042f3 UserVerificationCoordinator: Integrate manually verify device screen. 2020-05-07 10:54:02 +02:00
SBiOSoftWhare
4da4fca080 Implement manually verify device screen. 2020-05-07 10:52:49 +02:00
manuroe
5f44745355 RoomMemberVC: Make sure we have user keys to display the right trust level 2020-05-06 14:37:37 +02:00
manuroe
64ade7f884 Cross-signing: The "Complete Security" button triggers a verification request to all user devices 2020-05-06 14:35:52 +02:00
manuroe
dcc38bb62c UserVerificationSessionStatusView: Add verifyManually action 2020-05-06 09:45:55 +02:00
manuroe
21e6310fd8 UserVerificationSessionStatusViewController: Add manually verify button 2020-05-05 18:27:36 +02:00
SBiOSoftWhare
0ffa48b004 Key verification: Update QR code scan screen UI and update title when scanning own sessions. 2020-05-05 15:45:00 +02:00
SBiOSoftWhare
7223cefd8f Remove some optional chaining. 2020-05-05 12:03:51 +02:00
SBiOSoftWhare
49a4e1fb6e KeyVerificationSelfVerifyStartViewController: Show navigation bar if needed. 2020-05-05 11:51:22 +02:00
SBiOSoftWhare
d899011360 KeyVerificationDataLoadingViewController: Show navigation bar if needed. 2020-05-05 11:50:59 +02:00
SBiOSoftWhare
333f7a0db4 MasterTatBarVC: Fix navigation stack issue when show security screen. 2020-05-05 09:17:47 +02:00
SBiOSoftWhare
dae859af47 Key verification: Display "Verify your other sessions" modal at every startup if needed. 2020-05-04 19:59:11 +02:00
SBiOSoftWhare
c782826fce Make SettingsViewController directly instantiable. 2020-05-04 19:58:06 +02:00
SBiOSoftWhare
463bc2fdca
Merge branch 'develop' into riot_3183 2020-04-30 19:24:45 +02:00
SBiOSoftWhare
80948bc52d Complete security: Handle incoming SAS transaction. 2020-04-30 19:17:56 +02:00