bitwarden-estensione-browser/libs/angular/src
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
..
admin-console [PM-2170] Update collections component (#6794) 2024-04-16 15:47:12 +01:00
auth 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
billing/images/cards [AC-1011] Admin Console / Billing code ownership (#4973) 2023-03-22 10:03:50 -05:00
components [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00
directives Ps/pm 5965/better config polling (#8325) 2024-03-27 10:03:09 -07:00
pipes [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
platform [AC-2356] Use safeProvider in web core services module (#8521) 2024-04-08 07:59:12 +10:00
scss [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
services 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
tools [PM-6194] Refactor injection of services in browser services module (#8380) 2024-04-10 14:02:46 +01:00
types [EC-7] Org Admin Vault Refresh Client V1 (#3925) 2022-11-02 09:57:25 -07:00
utils [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
vault [PM-5273] Migrate state in CipherService (#8314) 2024-04-16 17:37:03 +01:00
jslib.module.ts [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00