bitwarden-estensione-browser/libs/importer/spec
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
..
test-data Changed logic to validate if cipher has a collection on targetSelector method (#8422) 2024-03-25 18:10:40 +00:00
base-importer.spec.ts Tools/pm 3567 import xxe detection (#6918) 2023-12-08 09:50:02 -05:00
bitwarden-password-protected-importer.spec.ts [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
chrome-csv-importer.spec.ts [PM-328] Move `common/importer` to `libs/importer` (tools-migration) (#5060) 2023-03-23 11:43:27 +01:00
dashlane-csv-importer.spec.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
enpass-json-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
firefox-csv-importer.spec.ts [PM-328] Move `common/importer` to `libs/importer` (tools-migration) (#5060) 2023-03-23 11:43:27 +01:00
keepass2-xml-importer.spec.ts [PM-328] Move `common/importer` to `libs/importer` (tools-migration) (#5060) 2023-03-23 11:43:27 +01:00
keeper-csv-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
keeper-json-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
lastpass-csv-importer.spec.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
myki-csv-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
nordpass-csv-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
onepassword-1pif-importer.spec.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
onepassword-1pux-importer.spec.ts [PM-536] Adding the 1password fix for custom sections and test cases (#7190) 2023-12-22 16:22:39 -05:00
onepassword-mac-csv-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
onepassword-win-csv-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
passky-json-importer.spec.ts [PM-328] Move `common/importer` to `libs/importer` (tools-migration) (#5060) 2023-03-23 11:43:27 +01:00
protonpass-json-importer.spec.ts Assign ownership to many libs files (#6928) 2023-11-27 20:59:44 +00:00
psono-json-importer.spec.ts Calling processFolder method when adding ciphers on PsonoJsonImporter (#7984) 2024-02-22 17:51:44 +00:00
roboform-csv-importer.spec.ts [PM-1684] Broken roboform importer (#5137) 2023-04-07 11:23:34 +01:00
safari-csv-importer.spec.ts [PM-328] Move `common/importer` to `libs/importer` (tools-migration) (#5060) 2023-03-23 11:43:27 +01:00
securesafe-csv-importer.spec.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00