bitwarden-estensione-browser/libs/common/src/platform/models/domain
Jared Snider fffef95c5e
Auth/PM-7235 - Refactor AuthService.getAuthStatus, deprecate everBeenUnlocked, and handle initialization of auto user key on client init (#8590)
* PM-7235 - AuthSvc - Refactor getAuthStatus to simply use the cryptoService.hasUserKey check to determine the user's auth status.

* PM-7235 - CryptoSvc - getUserKey - remove setUserKey side effect if auto key is stored. Will move to app init

* PM-7235 - For each client init service, add setUserKeyInMemoryIfAutoUserKeySet logic

* PM-7235 - CryptoSvc tests - remove uncessary test.

* PM-7235 - Create UserKeyInitService and inject into all init services with new listening logic to support acct switching.

* PM-7235 - UserKeyInitSvc - minor refactor of setUserKeyInMemoryIfAutoUserKeySet

* PM-7235 - Add test suite for UserKeyInitService

* PM-7235 - Remove everBeenUnlocked as it is no longer needed

* PM-7235 - Fix tests

* PM-7235 - UserKeyInitSvc - per PR feedback, add error handling to protect observable stream from being cancelled in case of an error

* PM-7235 - Fix tests

* Update libs/common/src/platform/services/user-key-init.service.ts

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Update libs/common/src/platform/services/user-key-init.service.ts

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* PM-7235 - AuthSvc - Per PR review, for getAuthStatus, only check user key existence in memory.

* PM-7235 - remove not useful test per PR feedback.

* PM-7235 - Per PR feedback, update cryptoService.hasUserKey to only check memory for the user key.

* PM-7235 - Per PR feedback, move user key init service listener to main.background instead of init service

* PM-7235 - UserKeyInitSvc tests - fix tests to plass

---------

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2024-04-19 11:20:13 -04:00
..
account-keys.spec.ts [PM-5362] Add MP Service (attempt #2) (#8619) 2024-04-09 20:50:20 -04:00
account-profile.spec.ts Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
account-settings.spec.ts Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
account-tokens.spec.ts Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
account.spec.ts Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
account.ts Auth/PM-7235 - Refactor AuthService.getAuthStatus, deprecate everBeenUnlocked, and handle initialization of auto user key on client init (#8590) 2024-04-19 11:20:13 -04:00
decrypt-parameters.ts Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
domain-base.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
enc-array-buffer.spec.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
enc-array-buffer.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
enc-string.spec.ts Move key types to central location (#7531) 2024-01-17 07:27:44 -05:00
enc-string.ts [PM-5468] Ensure prototypes available on memory stored objects (#7399) 2024-01-02 10:46:45 -05:00
encrypted-object.ts Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00:00
encryption-pair.spec.ts Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00:00
global-state.ts [PM-7562] Add DuckDuckGo back to State Service (#8791) 2024-04-19 09:45:09 -04:00
state.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
state.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
storage-options.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
symmetric-crypto-key.spec.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
symmetric-crypto-key.ts Move key types to central location (#7531) 2024-01-17 07:27:44 -05:00