1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-02 08:40:08 +01:00
bitwarden-browser/apps/desktop/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
..
app [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
auth [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
autofill/services [PM-5571] Migrate enableDDG to state provider framework (#8384) 2024-03-22 13:32:03 -04:00
images [PM-4612] [PM-6218] [PM-6219] Enable Duo redirect on Desktop Client (#7798) 2024-02-14 09:06:04 -08:00
locales Autosync the updated translations (#9052) 2024-05-06 14:52:02 +00:00
main Add beta extension to allowed native messaging hosts (#8996) 2024-05-01 13:43:15 -04:00
models [PM-5537] Biometric State Service (#7761) 2024-02-05 13:02:28 -05:00
platform [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
proxy
scss [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00
services Use account service for account enumeration. (#9023) 2024-05-03 14:24:30 -04:00
types [PM-3683] Remove ipcRenderer from electron-platform-utils (#6679) 2023-11-01 18:34:36 +01:00
vault/app [AC-2555] Cipher collections dialog merge fixes (#9036) 2024-05-07 10:00:47 -07:00
entry.ts
global.d.ts [PM-3996] Scaffolding for preload script (#6065) 2023-10-12 11:50:17 +02:00
index.html [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
main.ts [PM-7766] Add clientType to MigrationHelper (#8945) 2024-04-29 07:28:58 -04:00
package-lock.json Bumped browser,cli,desktop,web version to (#9064) 2024-05-06 22:37:46 +00:00
package.json Bumped browser,cli,desktop,web version to (#9064) 2024-05-06 22:37:46 +00:00
preload.ts [PM-3756] Disable node integration and enable context isolation in desktop (#6975) 2024-02-08 18:00:19 +01:00
utils.spec.ts
utils.ts [PM-3756] Disable node integration and enable context isolation in desktop (#6975) 2024-02-08 18:00:19 +01:00