Commit Graph

30 Commits

Author SHA1 Message Date
Stefan Ceriu fa3866ea76 Implement login with scanned QR code flows 2022-10-12 17:27:25 +03:00
ismailgulek d5c7e6bd8e Login with QR UI components (#6790)
* Display QR button on login screen if HS supports

* Create start screen

* Add build flag

* Connect start screen to the login

* QR display screen

* Move `LabelledDividerView` into separate file

* Show display QR screen on button tap

* Add swift concurreny to CameraAccessManager

* Introduce `QRLoginServiceProtocol`

* Use new service in screens

* Introduce scan QR code screen

* Remove hardcoded service availability

* Remove unnecessary import

* Add confirmation screen

* Add loading screen

* Fix ZXingObjc targets

* Add failure screen

* Add strings

* Various UI tweaks, navigation according to the service state

* Fix tests

* Add string for invalid QR error

* Add QR login service mode
2022-10-06 18:05:46 +03:00
Stefan Ceriu 89bcd92cca Configured and applied SwiftFormat 2022-09-27 12:55:44 +03:00
Doug 7e411d1528 Use the default homeserver when starting a new auth flow.
And override this when a provisioning link has been set.
2022-08-09 08:54:31 +01:00
Doug a2ff36ab21 FTUE tweaks
- Allow login using a phone number.
- Update the server when entering a full MXID during registration.
- Reset the authentication service back to matrix.org after onboarding completes.
- Disable zoom on ReCaptcha to fix responsiveness issue.
- Tidy up unused methods.
2022-07-19 09:22:15 +01:00
ismailgulek 91b2cdd2e0 Merge branch 'develop' into ismail/6181_auth_soft_logout 2022-06-09 15:46:29 +03:00
ismailgulek f44f9ae1da Use softLogoutCredentials in AuthenticationService, fix blank screen before soft logout 2022-06-09 14:21:13 +03:00
Doug e8e3ad86c8 Add an unrecognised certificate alert to the new authentication flow. 2022-06-09 09:37:57 +01:00
ismailgulek fb4e5085cb Merge pull request #6250 from vector-im/ismail/6180_support_prov_links 2022-06-07 20:54:14 +03:00
ismailgulek 1804cea58c Fix PR remarks 2022-06-07 19:48:26 +03:00
ismailgulek c62852a580 Handle provisioning links in AuthenticationService and call delegate method 2022-06-07 16:19:24 +03:00
ismailgulek e705b8db46 Add identity server to AuthenticationState 2022-06-07 16:18:54 +03:00
ismailgulek 207277432f Merge branch 'develop' into ismail/6177_wellknown_IS 2022-06-06 15:23:22 +03:00
Doug c9acc240a8 Add initial tests on the authentication service. (#6229) 2022-06-06 13:20:46 +01:00
ismailgulek ccd3befbbf Use identity server from well-known when creating the client 2022-06-03 18:08:19 +03:00
ismailgulek 15ebe174c5 Fix PR remarks 2022-05-30 19:56:23 +03:00
ismailgulek 88b2688703 Show fallback on authentication coordinator 2022-05-27 17:49:54 +03:00
Doug 5eb676be30 Handle SSO deep links via the AuthenticationServiceDelegate. 2022-05-25 17:38:21 +01:00
Doug 292cd4a5d2 Disable the next button whilst loading a server.
Add tests for login screen.
Self review.
2022-05-24 18:03:31 +01:00
Doug e77d7d9250 Add AuthenticationHomeserverViewData to easily map AuthenticationState.Homeserver to a type in the SwiftUI target. 2022-05-24 15:47:25 +01:00
Doug 26b4130eb1 Make the server selection coordinator aware of which flow it is for.
Don't set the authentication state until after registration has been queried to avoid using the wrong client if the user cancelled the selection.
2022-05-24 15:47:24 +01:00
Doug f66e97564e Add AuthenticationRestClient protocol as an authentication interface to MXRestClient. 2022-05-24 10:09:24 +01:00
Doug 770771473b Add initial implementation of the LoginWizard. 2022-05-24 10:09:24 +01:00
Doug 1b74f87b35 Add Email/Terms/ReCaptcha into the Authentication flow
Replace ReCaptcha navigation delegate with a WKUserContentController.
Move callback property closures onto the MainActor.
Show a loading indicator whilst waiting for the authentication service to start.
Move nextUncompletedStage into FlowResult.
Handle text field actions during authentication.
Remove scroll view tweaks in server selection screen following EMS banner removal.
2022-05-19 11:43:38 +01:00
Doug c2d9f7318f Remove iOS 13/14 checks from Template/Onboarding/Authentication. 2022-05-11 09:49:24 +01:00
Doug f2277cbd3d Send the Signup analytics event (#6118)
* Implement the Signup event from AuthenticationViewController.

Use AuthenticationFlow instead of MXKAuthenticationType.
Create new AuthenticationType that aligns with AnalyticsEvent naming.
Add additional cases from AnalyticsEvents.
2022-05-06 13:08:54 +01:00
Doug 7917d0b3b7 Address PR comments.
Log errors before throwing.
Remove white colour.
Remove AuthenticationCoordinatorState added during rebase.
2022-05-04 19:26:38 +01:00
Doug 91b40294ee Allow registration on SSO only servers.
Stop using the homeserver from user defaults.
2022-05-04 19:26:38 +01:00
Doug bf3dfa40bd Fix authentication screens for updated service implementation. 2022-05-04 19:26:38 +01:00
Doug e7458c83d8 Add AuthenticationService and RegistrationWizard. (#6056) 2022-04-27 16:02:54 +01:00