Commit Graph

18 Commits

Author SHA1 Message Date
dkadrikj 519765b9bd Rename ServerConnectionListener.kt to ApiConnectionListener.kt,
ServerConnectionHandler.kt to ApiConnectionHandler.kt and
ServerConnectionException.kt to ApiConnectionException.kt
2021-11-22 15:01:26 +00:00
dkadrikj b69d40f9fb Update CHANGELOG.md and rename ServerConnectionListener.kt function. 2021-11-22 15:01:26 +00:00
dkadrikj 42b21ec123 renamed guesthole package into server connection 2021-11-22 15:01:26 +00:00
dkadrikj 5857b20674 Fix HV not showing when GH is active.
Address code review comments.
2021-11-22 15:01:26 +00:00
dkadrikj cb493af7a7 Add gues hole support into the network module. 2021-11-22 15:01:26 +00:00
Mateusz Armatys f0bee56b9f Put all API error codes in `ResponseCodes` class 2021-11-22 11:11:12 +01:00
Neil Marietta e1c07f1741 Added Force Update error 5005 (API too old). 2021-06-10 11:13:24 +02:00
Neil Marietta 1b7e6eb9e9 Fixed ClientId initialisation issue.
Added ClientIdProvider (rely on ProtonCookieStore).
2021-06-03 17:18:11 +02:00
Neil Marietta 646183da63 Refactored HumanVerification.
Never delete HumanVerification tokens except on Invalid Verification Code (error 12087).

HumanVerification Network Handlers:
- HumanVerificationNeededHandler: call onHumanVerificationNeeded on error 9001 (last of error handler list).
- HumanVerificationInvalidHandler: call onHumanVerificationInvalid (which delete token) on error 12087.
2021-06-03 17:18:11 +02:00
dkadrikj 98ca99f9a6 Various improvements for Signup and Presentation.
Various improvements for User, Human Verification and Presentation modules.
Various improvements for User, Human Verification and Presentation modules.
Remove PayloadRequest.kt.
Update tests suite.
Remove not used files NewUser.kt and NewExternalEmailUser.kt
Take out create address from UserManager.kt
User emailSplit extension instead.
Introduce CreateUserType.kt
Move HumanVerificationResult handler into the ViewModel.
Fix wait to DB write HV ViewModel.
Improve SetupPrimaryKeys.kt.
Fix HV tests.
2021-05-12 21:07:28 +02:00
dkadrikj d41e19e28c Change network module to support refactored Human Verification module. 2021-05-12 17:57:14 +00:00
Neil Marietta 305c3a67f2 Fixed Human Verification race condition. 2021-03-25 16:06:55 +01:00
Neil Marietta 09c4afe41f Fixed Network refresh token race condition. 2021-03-25 16:05:59 +01:00
dkadrikj bca06c13a5 Add API error message to the force update interface. 2020-11-24 12:18:39 +00:00
Neil Marietta 53f8b0107f Integrated SessionListener/SessionProvider/SessionId into network modules.
Added ApiProvider (create ApiManager instance given a sessionId).
Adapted HumanVerification modules to use ApiProvider.
2020-10-20 11:22:27 +02:00
Mateusz Markowicz 99339a1306 network: Introduce cooldown period for token refresh 2020-08-24 16:22:42 +00:00
Mateusz Markowicz 49bbb73bb7 network: Save refresh and access tokens together 2020-08-24 16:22:42 +00:00
dkadrikj 3a52601942 Human verification support in the network module
Includes also changes needed in the Human Verification module
2020-08-04 15:18:43 +02:00