Commit Graph

35 Commits

Author SHA1 Message Date
Oscar Hinton c27f421d56
Add eslint (#2405) 2022-02-24 18:14:04 +01:00
Thomas Rittson 7d43835ea2
Update client for authService refactor (#2302) 2022-02-08 09:06:37 +10: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 3eb860f464
BEEEP: Refactor services DI (#2201) 2021-12-06 12:21:07 +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
Thomas Rittson 82138a08ff
[Refactor] Use rxjs first instead of unsubscribe from queryParams (#2112)
* Use rxjs first instead of unsubscribe

* Update jslib
2021-10-15 07:58:59 +10:00
Vincent Salucci c1613f79cd
[Reset Password v1] Refactor ForcePasswordReset flow (#2063)
* [Reset Password v1] Refactor ForcePasswordReset flow

* Update jslib
2021-09-24 08:34:09 -05:00
Oscar Hinton a1f7e07f09
Add password show/hide to reprompt (#1902)
Co-authored-by: Addison Beck <abeck@bitwarden.com>
2021-08-27 15:27:22 +02:00
addison c9a244471e also moved the rmp check in the two factor component 2021-08-11 13:44:09 -04:00
Vincent Salucci 2bddc1017b [Reset Password v1] Update Temp Password 2021-08-05 10:01:58 -05: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 d252fd1740
Bump dependencies (#1792)
* Bump dependencies
2021-04-23 10:45:20 +02:00
Oscar Hinton eeb61b019b
Increase popup width on linux during WebAuthn process (#1772)
* Expand popup width on linux during WebAuthn prompt

* Refactor
2021-04-06 23:10:22 +02:00
Oscar Hinton e0f4386042
Add support for WebAuthn to browser extension (#1379) 2021-03-17 22:14:26 +01:00
Vincent Salucci 61d7fcfc85
Fixed lint warnings (#1655) 2021-03-02 12:31:52 -06:00
Oscar Hinton 3e79dd245b
Safari Web Extension Port from App Extension (#1531) 2021-02-03 20:36:05 +01:00
Chad Scharf 336f8f3117
Revert "Safari Web Extension Port from App Extension" 2021-01-13 17:08:33 -05:00
Hinton a9c9108053 Remove more old safari app ext code 2020-12-11 15:25:35 +01:00
Hinton 25a2af903a Merge branch 'master' of https://github.com/bitwarden/browser into feature/safari-webext
# Conflicts:
#	src/background/runtime.background.ts
2020-12-11 14:33:46 +01:00
Matt Gibson c95230fc48
Close 2fa window if redirected from sso login (#1480)
* Close 2fa window if redirected from sso login

This is a workaround until we can get browser extension sso to use the
toolbar popup.

other changes are linter autofixs

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-09 15:30:03 -06:00
Hinton 0f2c4b4a59 Remove more old safari app extension logic 2020-12-09 18:23:44 +01:00
Vincent Salucci f54ca688d4
[SSO] New user provision flow jslib update (3bf322a -> d84d6da) (#1429)
* Updated import/constructors

* Update jslib (3bf322a -> d84d6da)
2020-10-14 08:58:36 -05:00
Kyle Spearrin 0e798c610e safari 2fa page cleanup 2019-08-21 10:05:17 -04:00
Kyle Spearrin d2083c2665 cleanup for safari 2019-08-21 09:42:34 -04:00
Kyle Spearrin 6c110bb9a4 workaround for u2f bug in firefox on w10 2019-07-03 10:37:13 -04:00
Kyle Spearrin af8274247b re-set favicon state on unlock/login 2019-07-02 08:26:33 -04:00
Kyle Spearrin 81071be126 twoFactorProvidersData 2019-05-27 10:29:41 -04:00
Kyle Spearrin 421f8f24e1 offer to pop out window on email 2fa 2018-12-03 13:47:40 -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 ca62fd2a66 onSuccessfulLogin typo again 2018-07-13 10:50:32 -04:00
Kyle Spearrin e57a38fbb1 move sync to post login action 2018-04-25 12:08:23 -04:00
Kyle Spearrin 78058c3591 lint fixes 2018-04-10 23:49:46 -04:00
Kyle Spearrin 67ab9b1d3e move new app into popup folder 2018-04-10 21:54:20 -04:00