Commit Graph

14889 Commits

Author SHA1 Message Date
Justin Baur e4ef7d362e
[PM-7838] [PM-7864] Ensure AuthStatus Changes Before Exiting (#9018)
* Ensure AuthStatus Changes Before Exiting

* Do Not Display Account Without Name Or Email

* Fix Environment Selectors

* Add AccountService.clean to Web
2024-05-03 16:43:42 -04:00
Jared Snider 1b372b4cf7
PM-7392 - TokenSvc - (1) Remove test code (2) Refactor decryptAccessToken method to accept access token key and error on failure to pass required decryption key to method. 2024-05-03 15:28:26 -04:00
Jared Snider 457e7a4819
Merge branch 'main' into auth/pm-7392/token-service-add-secure-storage-fallback 2024-05-03 14:56:26 -04:00
Justin Baur b46766affd
[PM-7907] No more optional `privateKey` (#9029)
* Update Emergency Access To Get Their Own Key

* Migrate Organization Keys To Get Their Own Key

* Remove Optional Parameters

* Update Abstraction Parameter Name to Match Implementation

* Add @throws Doc
2024-05-03 14:30:45 -04:00
Jared Snider c2295e25ab
PM-7392 - TokenSvc - update to use EncString instead of EncryptSvc + fix tests. 2024-05-03 14:26:59 -04:00
Matt Gibson a4d5717283
Use account service for account enumeration. (#9023) 2024-05-03 14:24:30 -04:00
Jared Snider 38856083ac
PM-7392 - Actually fix circ dep issues with Justin. Ty!
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-05-03 14:14:04 -04:00
Jared Snider ee6b1a35ec
PM-7392 - Remove encrypt service method
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-05-03 14:10:52 -04:00
Jared Snider 8c8c44430d
PM-7392 - Enc String - (1) Add handling for Nan in parseEncryptedString (2) Added null handling to isSerializedEncString. (3) Plan to remove encrypt service implementation
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-05-03 14:07:58 -04:00
Alex Morask 0b02d2ee1c
[AC-1970] Add billing navigation group to provider layout (#8941)
* Add billing navigation item to provider layout with empty subscription page behind FF.

* Fixing tests

* Missed build error

* Addison's feedback

* Remove unused function

* Missed one get$ conversion

* Fixed background failure
2024-05-03 12:36:10 -04:00
Jake Fink 4c860e12d7
fix init account validation (#9034) 2024-05-03 12:23:12 -04:00
Jake Fink 69ed6ce1f5
[PM-6727] Part 1: pass userId in login strategies (#9030)
* add validation to initAccount

* pass userId to setMasterKey

* fix key connector tests
2024-05-03 11:54:29 -04:00
Jared Snider e9d2f3fec9
PM-7392 - Don't re-invent the wheel and simply use existing isSerializedEncString static method. 2024-05-03 11:31:42 -04:00
Jared Snider 6456670c2f
PM-7392 - Main.ts - remove comment. 2024-05-03 11:25:10 -04:00
Jared Snider 7416fec332
Merge branch 'main' into auth/pm-7392/token-service-add-secure-storage-fallback 2024-05-03 11:19:49 -04:00
Jared Snider dbbf100187
PM-7392 - Main.ts - fix circ dep issue. 2024-05-03 11:17:35 -04:00
Jared Snider 1db1728bd2
PM-7392 - EncryptSvc - test new stringIsEncString method 2024-05-03 11:09:33 -04:00
renovate[bot] debfe914c2
[deps] Platform (CL): Update tailwindcss to v3.4.3 (#8736)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 10:47:20 -04:00
Anas ed236df24b
fix(8560): refreshing reports pages displays empty pages (#8700) 2024-05-03 14:44:57 +01:00
github-actions[bot] 1f6eec4dd5
Autosync the updated translations (#9028)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-05-03 07:22:44 +00:00
github-actions[bot] f5012e39ef
Autosync the updated translations (#9026)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-05-03 07:14:45 +00:00
github-actions[bot] 7b96979c00
Autosync the updated translations (#9027)
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com>
2024-05-03 06:51:44 +00:00
Jared Snider 87c8520d09
PM-7392 - TokenSvc tests - getAccessToken - all new scenarios tested 2024-05-02 20:19:08 -04:00
Jared Snider e6e017c61e
PM-7392 - TokenSvc - getAccessToken - if secure storage errors add error to log. 2024-05-02 20:16:52 -04:00
Jared Snider e0a77c6e3c
PM-7392 - TokenSvc tests - setAccessToken new scenarios tested. 2024-05-02 19:51:18 -04:00
Jared Snider e6beb0c46c
PM-7392 - Fix error quote 2024-05-02 19:42:40 -04:00
Jared Snider ffb8065bf1
PM-7392 - getRefreshToken tests done. 2024-05-02 19:19:38 -04:00
Jared Snider e4d31d5500
PM-7392 - TokenSvc tests - clean up test names that reference removed refresh token migrated flag. 2024-05-02 18:35:38 -04:00
Jared Snider 6b2a032ceb
PM-7392 - Fix test name. 2024-05-02 18:31:36 -04:00
Jared Snider 3e9f904e84
PM-7392 - TokenSvc - getRefreshToken should return null or a value - not undefined. 2024-05-02 18:26:24 -04:00
Jared Snider cd7680329d
PM-7392 - TokenSvc tests - Test new setRefreshToken scenarios 2024-05-02 18:22:53 -04:00
Jared Snider 7ac1c194ad
PM-7392 - Fix token service tests in prep for adding tests for new scenarios. 2024-05-02 18:11:37 -04:00
Jared Snider 180e658ea3
PM-7392 - TokenSvc - refresh token disk storage fallback 2024-05-02 17:41:16 -04:00
Jared Snider 0188a51bf9
Merge branch 'main' into auth/pm-7392/token-service-add-secure-storage-fallback 2024-05-02 17:22:09 -04:00
Thomas Rittson 6db90dc141
Use refCount: true for shareReplay (#9005) 2024-05-02 14:48:57 -05:00
Daniel James Smith e774089d0e
Make premium.component to be owned by team-billing-dev (#8935)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-05-02 15:04:38 -04:00
Cesar Gonzalez 6b286e9d9e
[PM-7874] Fix lost state when adding a vault item on the current tab view (#9020) 2024-05-02 11:39:48 -05:00
Cesar Gonzalez f51042f813
[PM-7810] Handle Multithread Decryption Through Offscreen API (#8978)
* [PM-7810] Handle Multithread Decryption through Offscreen API

* [PM-7810] Handle Multithread Decryption through Offscreen API

* Use a service to track when to open and close offscreen document

There some strangeness around maintaining the offscreen document for more callbacks, that need not have the same reasons and justifications as the original.

We'd need to test, but perhaps the intent is something closer to maintaining a work queue ourselves and creating the offscreen page for only a single reason as it comes in, then waiting for that page to close before opening another.

* [PM-7810] Handle Multithread Decryption through Offscreen API

* [PM-7810] Handle Multithread Decryption through Offscreen API

* [PM-7810] Handle Multithread Decryption through Offscreen API

* [PM-7810] Handle Multithread Decryption through Offscreen API

* [PM-7810] Implementing jest tests for OffscreenDocument and BrowserMultithreadEncryptServiceImplementation

* [PM-7810] Separating out the process by which we get decrypted items from the web worker to ensure we do not do duplicate effort

* [PM-7810] Separating out the process by which we get decrypted items from the web worker to ensure we do not do duplicate effort

* Prefer builtin promise flattening

* [PM-7810] Introducing a fallback to the MultithreadEncryptServiceImplementation to ensure we can fallback to single thread decryption if necessary

* [PM-7810] Updating documentation

* [PM-7810] Fixing implementation to leverage the new OffscreenDocumentService

---------

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2024-05-02 16:12:41 +00:00
Thomas Avery bdbb16ab4c
[SM-923] Migrate Project -> Service Accounts access policy selector (#8789)
* Add request and response models

* Add view

* Add support in ap item types

* Add new endpoints to the access policy service

* Migrate to access policy selector

---------

Co-authored-by: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com>
2024-05-02 11:05:10 -05:00
Jared Snider 3c3b529af4
PM-7392 - Clean up unnecessary comment 2024-05-02 11:22:19 -04:00
Jonathan Prusik 26988730b1
[PM-7627] [MV3] Do not run fido2 content scripts on browser settings or extension pages (#8863)
* do no run fido2 content scripts on browser settings or extension background pages

* remove unneeded overlay visibility setting state guard

* only filter content script and page script and update test

* handle content script host permission errors

* add activeTab to mv3 permissions

* allow other browser inject errors to throw
2024-05-02 11:19:00 -04:00
Daniel James Smith 8b28eee3a7
[PM-7701] Clean up services module (#8907)
* Remove usage of getBgService for CipherService

With CipherService using StateProviders: https://github.com/bitwarden/clients/pull/8314 - we should no longer need CipherService

* Remove usage of getBgService for CollectionService

With CollectionService using StateProviders: https://github.com/bitwarden/clients/pull/7732 - we should no longer need CollectionService

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-05-02 15:46:32 +02:00
Nick Krantz d8bdad9f22
[AC-2140] Swap Admin Console icon (#8973)
* swap admin console icon to `bwi-user-monitor`

* use max-width to force wrapping of product switcher text

* remove duplicate style
2024-05-02 08:45:55 -05:00
Matt Gibson ee2f96d3c4
Use a service to track when to open and close offscreen document (#8977)
* Use a service to track when to open and close offscreen document

There some strangeness around maintaining the offscreen document for more callbacks, that need not have the same reasons and justifications as the original.

We'd need to test, but perhaps the intent is something closer to maintaining a work queue ourselves and creating the offscreen page for only a single reason as it comes in, then waiting for that page to close before opening another.

* Prefer builtin promise flattening

* Await anything and everything

---------

Co-authored-by: Cesar Gonzalez <cesar.a.gonzalezcs@gmail.com>
2024-05-02 09:10:06 +02:00
Thomas Rittson 9dda5e8ee1
[AC-2170] Group modal - limit admin access - collections tab (#8758)
* Update Group modal -> Collections tab to respect collection management settings,
  e.g. only allow admins to assign access to collections they can manage
* Update collectionAdminView getters for custom permissions
2024-05-02 09:54:18 +10:00
Jared Snider 911613ad61
PM-7392 - Access token secure storage to disk fallback WIP but mostly functional besides weird logout behavior. 2024-05-01 19:12:39 -04:00
cyprain-okeke 66d9ec19a3
resolve the issue (#9000) 2024-05-01 22:00:10 +01:00
Justin Baur 4b42ff7171
[PM-3483] Remove `migrateKeyForNeverLockIfNeeded` Logic (#8953)
* Remove `migrateKeyForNeverLockIfNeeded` Logic

* Fix Test

* Remove `migrateAutoKeyIfNeeded`
2024-05-01 15:50:40 -04:00
Matt Gibson b45c309f83
Add beta extension to allowed native messaging hosts (#8996) 2024-05-01 13:43:15 -04:00
Thomas Avery af0a884ee8
[SM-910] Migrate service account -> projects tab to new access policy selector (#8572)
* Add view, requests and responses

* access policy service update

* Add read only support to access policy selector

* Migrate service account -> projects tab
2024-05-01 11:47:06 -05:00