Commit Graph

23 Commits

Author SHA1 Message Date
Thomas Rittson 6bd5d579af
[PS-74] Fix user authentication state checks (#2481)
* Replace vaultTimeoutService.isLocked
2022-05-02 07:57:40 +10:00
Oscar Hinton d5334360dd
Add support for no intrusive biometric (#2431) 2022-03-15 13:13:39 +01:00
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01: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
Thomas Rittson 3a1c050502
Update jslib (#2202)
* Update jslib

* Update constructors

* Update jslib
2021-11-29 10:14:04 +10:00
Thomas Rittson cf28435ce3
[Key Connector] Add support for key connector and OTP (#2156)
Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-11-09 18:59:51 +01:00
Oscar Hinton ce2e6c3cb4
Remove empty catch blocks and remove allow-empty-catch tslint rule (#2136) 2021-10-21 11:10:46 +02:00
Oscar Hinton b0bc00a2c0
Prevent the lock component from removing the biometric error message (#2087) 2021-09-28 16:37:18 +02:00
Dane Powell 7d797f73fe
Automatic biometrics prompt (#2065)
Co-authored-by: Michael Cho <mcho@tutanota.com>
2021-09-17 10:22:46 +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
Hinton 0a4d59092b Cleanup, localize error. 2020-10-21 17:18:04 +02:00
Hinton 01ffa27fcc Add unlock using biometry to lock screen 2020-10-11 20:42:09 +02:00
Chad Scharf 707f259e73 Fixed jslib compat changes for biometrics 2020-07-29 17:01:05 -04:00
Vincent Salucci e510738a03
[Auto-Logout] Implement Vault Timeout Options (#1194)
* Update jslib 31a2574 -> 28e3fff

* Initial commit for vault timeout

* Updated timeout/action retrieval in idle.background

* Cycle saved for idle check

* Await async calls for lock/logout in idle bg

* Updated lock vs log out conditional

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-04-06 10:40:16 -05:00
Kyle Spearrin af8274247b re-set favicon state on unlock/login 2019-07-02 08:26:33 -04:00
Kyle Spearrin fe3c611d5a logged in as on 2019-06-04 00:03:27 -04:00
Kyle Spearrin d5cbae7803 support for unlocking with PIN code 2019-02-12 23:53:04 -05:00
Kyle Spearrin a70306ea4a unlock message improvements 2019-01-07 23:29:50 -05:00
Kyle Spearrin adb3dc78ee remove analytics in favor of platform utils 2018-10-03 00:21:22 -04:00
Kyle Spearrin 89a448b12f platform utils for toasting 2018-10-02 23:33:56 -04:00
Kyle Spearrin 8d710456c4 focus password on lock page after timeout 2018-04-19 11:17:07 -04:00
Kyle Spearrin 67ab9b1d3e move new app into popup folder 2018-04-10 21:54:20 -04:00