clients/apps/browser/src
rr-bw a42de41587
[PM-5363] PinService State Providers (#8244)
* move pinKeyEncryptedUserKey

* move pinKeyEncryptedUserKeyEphemeral

* remove comments, move docs

* cleanup

* use UserKeyDefinition

* refactor methods

* add migration

* fix browser dependency

* add tests for migration

* rename to pinService

* move state to PinService

* add PinService dep to CryptoService

* move protectedPin to state provider

* update service deps

* renaming

* move decryptUserKeyWithPin to pinService

* update service injection

* move more methods our of crypto service

* remove CryptoService dep from PinService and update service injection

* remove cryptoService reference

* add method to FakeMasterPasswordService

* fix circular dependency

* fix desktop service injection

* update browser dependencies

* add protectedPin to migrations

* move storePinKey to pinService

* update and clarify documentation

* more jsdoc updates

* update import paths

* refactor isPinLockSet method

* update state definitions

* initialize service before injecting into other services

* initialize service before injecting into other services (bw.ts)

* update clearOn and do additional cleanup

* clarify docs and naming

* assign abstract & private methods, add clarity to decryptAndMigrateOldPinKeyEncryptedMasterKey() method

* derived state (attempt)

* fix typos

* use accountService to get active user email

* use constant userId

* add derived state

* add get and clear for oldPinKeyEncryptedMasterKey

* require userId

* move pinProtected

* add clear methods

* remove pinProtected from account.ts and replace methods

* add methods to create and store pinKeyEncryptedUserKey

* add pinProtected/oldPinKeyEncrypterMasterKey to migration

* update migration tests

* update migration rollback tests

* update to systemService and decryptAndMigrate... method

* remove old test

* increase length of state definition name to meet test requirements

* rename 'TRANSIENT' to 'EPHEMERAL' for consistency

* fix tests for login strategies, vault-export, and fake MP service

* more updates to login-strategy tests

* write new tests for core pinKeyEncrypterUserKey methods and isPinSet

* write new tests for pinProtected and oldPinKeyEncryptedMasterKey methods

* minor test reformatting

* update test for decryptUserKeyWithPin()

* fix bug with oldPinKeyEncryptedMasterKey

* fix tests for vault-timeout-settings.service

* fix bitwarden-password-protected-importer test

* fix login strategy tests and auth-request.service test

* update pinService tests

* fix crypto service tests

* add jsdoc

* fix test file import

* update jsdocs for decryptAndMigrateOldPinKeyEncryptedMasterKey()

* update error messages and jsdocs

* add null checks, move userId retrievals

* update migration tests

* update stateService calls to require userId

* update test for decryptUserKeyWithPin()

* update oldPinKeyEncryptedMasterKey migration tests

* more test updates

* fix factory import

* update tests for isPinSet() and createProtectedPin()

* add test for makePinKey()

* add test for createPinKeyEncryptedUserKey()

* add tests for getPinLockType()

* consolidate userId verification tests

* add tests for storePinKeyEncryptedUserKey()

* fix service dep

* get email based on userId

* use MasterPasswordService instead of internal

* rename protectedPin to userKeyEncryptedPin

* rename to pinKeyEncryptedUserKeyPersistent

* update method params

* fix CryptoService tests

* jsdoc update

* use EncString for userKeyEncryptedPin

* remove comment

* use cryptoFunctionService.compareFast()

* update tests

* cleanup, remove comments

* resolve merge conflict

* fix DI of MasterPasswordService

* more DI fixes
2024-05-08 11:34:47 -07:00
..
_locales [PM-7176] Create appearance settings component (navigational changes) (#8911) 2024-05-08 19:25:24 +02:00
admin-console Migrate OrganizationService to StateProvider (#7895) 2024-03-18 17:58:33 +01:00
auth [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
autofill [PM-7627] [MV3] Do not run fido2 content scripts on browser settings or extension pages (#8863) 2024-05-02 11:19:00 -04:00
background [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
billing/popup/settings Make premium.component to be owned by team-billing-dev (#8935) 2024-05-02 15:04:38 -04:00
browser [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
images [PS-1693] feat(browser): implement theming for notification bar (#3805) 2022-10-27 19:34:47 +02:00
models [PM-7352] - Browser Send Type Groupings Fix (#8727) 2024-04-17 16:39:15 +02:00
platform [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
popup [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
safari Update all instances of copyright with 2023 to 2024 (#7396) 2023-12-29 15:28:14 +00:00
services/vault-timeout [PM-5593] Removing BrowserSendService from services (#8512) 2024-03-27 12:34:15 -04:00
tools [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
types [AC-1011] Admin Console / Billing code ownership (#4973) 2023-03-22 10:03:50 -05:00
vault [PM-7176] Create appearance settings component (navigational changes) (#8911) 2024-05-08 19:25:24 +02:00
managed_schema.json [SM-88] [BEEEP] Add support for chrome.storage.managed for environment urls (#3120) 2022-08-08 07:40:09 -04:00
manifest.json Bumped browser,cli,desktop,web version to (#9064) 2024-05-06 22:37:46 +00:00
manifest.v3.json Bumped browser,cli,desktop,web version to (#9064) 2024-05-06 22:37:46 +00:00