Commit Graph

36 Commits

Author SHA1 Message Date
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01:00
Matt Gibson 45ed645cea
Skip unlocking unless locked, not only biometric locked (#2350) 2022-02-11 03:44:35 -06:00
Daniel James Smith bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Oscar Hinton a848406ce0
Use explicit import paths (#2074) 2021-09-17 15:44:27 +02:00
Oscar Hinton 4e1958f417
Add jslib as a "real" dependency (#1876)
* Support split jslib

* Fix tests

* Bump jslib
2021-06-07 19:25:37 +02:00
Oscar Hinton ae4c1b29d2
Add support for biometrics to Safari (#1775)
* Add Biometrics support to Safari
2021-04-07 17:39:59 +02:00
Oscar Hinton 75f84f6723
Resolve FF < 77 not working (#1706) 2021-03-15 15:44:10 +01:00
Matt Gibson 1868b99d17
Linter updates and fixes (#1604) 2021-02-10 09:40:15 -06:00
Oscar Hinton 8e20e48373
Resolve safari not working due to missing chrome api (nativeMessaging) (#1585) 2021-01-29 23:31:36 +01:00
Oscar Hinton 14293a7831
Reload browser extension after enabling nativeMessaging (#1577) 2021-01-27 23:05:50 +01:00
Oscar Hinton 0511905ab4
Handle desktop logged into a different account for biometrics (#1533) 2021-01-15 16:44:27 +01:00
Oscar Hinton c4388dad66
SystemService, Store if fingerprints have been validated or not (#1528) 2021-01-13 23:31:44 +01:00
Hinton 98cc69c6fa Solve native messaging silently disconnecting when restarting the desktop app 2021-01-05 15:12:48 +01:00
Hinton e922ff0bc2 Make error handler more generic 2021-01-04 20:53:49 +01:00
Oscar Hinton 83cea49a1b
Add missing break statement (#1503) 2020-12-21 09:18:18 -05:00
Hinton 47b6934699 Make checking fingerprint optional 2020-12-18 16:06:36 +01:00
Hinton 72c6f52ae2 Resolve review comments 2020-12-16 21:44:12 +01:00
Hinton 95d475a9d3 Show an error when biometrics is disabeld in desktop app or not supported 2020-12-16 17:32:51 +01:00
Hinton c4185fe6ee Add support for multiple concurrent extensions with native messaging 2020-12-16 15:47:30 +01:00
Hinton 0e2432d6f4 Review comments 2020-11-23 14:27:36 +01:00
Hinton 6257764c37 Resolve review comments 2020-11-19 19:16:29 +01:00
Hinton c1b099f5da Handle invalidatedEncrytption message 2020-10-23 14:40:50 +02:00
Hinton 222665dd9d Fix error in firefox 2020-10-21 20:39:58 +02:00
Hinton 251d0fdde3 Handle another error message 2020-10-21 17:50:27 +02:00
Hinton 0a4d59092b Cleanup, localize error. 2020-10-21 17:18:04 +02:00
Hinton 9064298309 Display error message when browser integration is disabled, or desktop not running 2020-10-21 15:56:10 +02:00
Hinton a3dbf8b65d Unlock using master key from desktop 2020-10-19 18:34:40 +02:00
Hinton a659c86373 Show fingerprint message 2020-10-19 16:50:25 +02:00
Hinton 378f603709 Setup new encryption flow 2020-10-19 12:20:45 +02:00
Hinton 90bba83ae5 wip 2020-10-16 17:08:53 +02:00
Hinton 41134aee98 Minor cleanup 2020-10-16 12:01:07 +02:00
Hinton a77cca82c8 Encrypt messages and verify timestamp. 2020-10-12 21:18:47 +02:00
Hinton 894d245361 Ensure biometric unlock works even if popup is not in focus 2020-10-12 18:01:34 +02:00
Hinton 5eb0ce1e09 Fix linting errors 2020-10-11 20:45:25 +02:00
Hinton f311101ed9 Initial work of biometric unlock for browser 2020-10-09 17:16:15 +02:00