1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 20:24:01 +00:00
Commit Graph

1384 Commits

Author SHA1 Message Date
Jared Snider
2471b20b62 PM-20532 - Clean up types and model middle sendId + email submission scenario 2025-06-05 12:03:57 -04:00
Jared Snider
aca18487e8 PM-20532 - More service layer refactors and wiring up error handling. 2025-05-29 14:33:16 -04:00
Jared Snider
4142d92db5 PM-20532 - Password to password hash rename 2025-05-29 14:32:44 -04:00
Jared Snider
6dd839cca1 PM-20532 - Clean up SendAccessTokenReq 2025-05-29 13:47:32 -04:00
Jared Snider
24165fef8e PM-20532 - Register SendTokenService and SendTokenApiService 2025-05-29 13:25:04 -04:00
Jared Snider
3c6f3aabdc Merge branch 'main' into auth/pm-20532/tech-breakdown-poc-token-based-send-authn-and-authz 2025-05-29 12:20:47 -04:00
Jared Snider
226af6cf79 PM-20532 - SendTokenService - add error types + type guards. 2025-05-29 12:17:01 -04:00
Jared Snider
a3ecc62907 PM-20532 - Update enums to use latest best practice. 2025-05-29 11:38:59 -04:00
Jared McCannon
058eb9a04b [PM-19127] - Nested Traverse Optimization (#14881)
* Draft optimization of getNestedCollectionTree

* Added feature flag to wrap nestedTraverse_vNext. added the old implementation back in for feature flagging.

* Correction from CR

* Copied tests over for the vNext method.

---------

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2025-05-29 10:17:30 -05:00
cyprain-okeke
0715597e8e [PM-21603]Invite Member sub text seat count does not account for sponsorships (#14954)
* Resolve the membership count

* Get the occupied Seat count from metadata
2025-05-29 15:06:07 +01:00
Jared Snider
60842c0490 PM-20532 - WIP on send token stuff 2025-05-28 18:30:20 -04:00
Jared Snider
9c23e0e529 PM-20532 - SendTokenSvc - wire up hash password 2025-05-28 17:52:29 -04:00
Jared Snider
cf39a16a42 PM-20532 - Add KM new SendPasswordService 2025-05-28 17:48:04 -04:00
cd-bitwarden
169fdd5883 [PM-20650] Feature flag addition to clients (#14824)
* Feature flag addition to clients

* Updating feature flag name
2025-05-28 14:56:44 +00:00
Andreas Coroiu
d1fb37d696 [PM-17635] [PM-18601] Simplifying mocking and usage of the sdk (#14287)
* feat: add our own custom deep mocker

* feat: use new mock service in totp tests

* feat: implement userClient mocking

* chore: move mock files

* feat: replace existing manual sdkService mocking

* chore: rename to 'client'

* chore: improve docs

* feat: refactor sdkService to never return undefined BitwardenClient
2025-05-28 15:00:30 +02:00
Thomas Rittson
4fcc4793bb Add additional jsdoc to policyservice (#14934) 2025-05-28 09:41:56 +10:00
Daniel Riera
88bc762521 PM-16645 (#14649) 2025-05-27 14:51:40 -04:00
Oscar Hinton
5423ab3268 [PM-21934] Upgrade to eslint 9 (#14754)
Upgrades to Eslint v9. Since this is a major version there were breaking changes, but since we've previously migrated to flat configs in #12806 those were minimal.
2025-05-27 13:13:15 -04:00
SmithThe4th
abb01d9038 ensure loginview properties have correct defaults when usding SDK decryption (#14948) 2025-05-27 11:14:10 -04:00
✨ Audrey ✨
97a591e738 [PM-16793] port credential generator service to providers (#14071)
* introduce extension service
* deprecate legacy forwarder types
* eliminate repeat algorithm emissions
* extend logging to preference management
* align forwarder ids with vendor ids
* fix duplicate policy emissions; debugging required logger enhancements

-----

Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2025-05-27 09:51:14 -04:00
Nick Krantz
888e2031a7 [PM-21090] Vault - Repeated Syncs (#14740)
* move `fullSync` contents to private methods in prep to storing the respective promise

* store in-flight sync so multiple calls to the sync service are avoided

* Revert "store in-flight sync so multiple calls to the sync service are avoided"

This reverts commit 233c8e9d4b.

* Revert "move `fullSync` contents to private methods in prep to storing the respective promise"

This reverts commit 3f686ac6a4.

* store inflight API calls for sync service

- This avoids duplicate network requests in a relatively short amount of time but still allows consumers to call `fullSync` if needed

* add debug log for duplicate sync
2025-05-27 08:24:53 -05:00
Andreas Coroiu
45f2104fd8 fix: broken SDK interface (#14959) 2025-05-27 14:31:27 +02:00
Oscar Hinton
beb00a206b Add UUID helpers to the SDK (#14939)
* Add UUID helpers to the SDK

* Address review feedback
2025-05-26 17:02:28 +02:00
Jared Snider
31ff7971c2 Merge branch 'main' into auth/pm-20532/tech-breakdown-poc-token-based-send-authn-and-authz 2025-05-23 16:00:14 -04:00
Jared Snider
5211d651ac PM-20532 - WIP on send access token layers. 2025-05-23 15:57:09 -04:00
Brandon Treston
207fd3af1d [PM-17148] Remove banner and state, migrate state (#14882)
* remove banner and state, migrate state

* add migration, bump version
2025-05-23 13:55:47 -04:00
Jared Snider
b55fc3110f PM-20532 - SendAccessTokenState - (1) Add fromJson (2) get state key definition setup for proper deserialization 2025-05-23 12:10:29 -04:00
Addison Beck
56a3b14583 Introduce eslint errors for risky/circular imports (#14804)
* first draft at an idea dependency graph

* ignore existing errors

* remove conflicting rule regarding internal platform logic in libs

* review: allow components to import from platform
2025-05-23 08:01:25 -04:00
Jared Snider
5f5e7186cc PM-20532 - WIP 2025-05-22 16:09:00 -04:00
Thomas Avery
bd29397fd8 [PM-21611] Require userId on KeyService clear methods (#14788) 2025-05-22 13:55:26 -05:00
Brandon Treston
9417d8a943 [PM-18633] Remove feature flagged logic (#14856)
* remove feature flagged logic

* clean up
2025-05-22 09:35:39 -04:00
Bernd Schoolmann
068c63e891 Fix send rotation broken due to incorrect types (#14874) 2025-05-22 15:05:28 +02:00
SmithThe4th
0555d827c6 exclude fido2crednetials when creating login item from template via CLI (#14766) 2025-05-21 18:06:06 -04:00
Jared Snider
ab723ab7cd PM-20532 - Update state definition name 2025-05-21 15:29:40 -04:00
Jared Snider
8cbd75caef PM-20532 - SendAccessToken model first draft 2025-05-21 15:29:04 -04:00
Ike
ae35cb4e65 [PM-20540] Deep-link refactor to fix SSO deep links (#14587)
* PM-20540 - TwoFactorAuthComponent - Refactor determineDefaultSuccessRoute to rely on user's auth status as the loginStrategyService's state is cleared after successful AuthN

* PM-20540 - DeepLinkGuard - Refactor to exempt login-initiated so that TDE + unlock with MP + deep link works.

* doc: Add documentation and change folder structure.
* test: add test for new excluded route.

---------

Co-authored-by: Jared Snider <jsnider@bitwarden.com>
2025-05-21 08:24:17 -04:00
Jared Snider
b9a8c32dce PM-20532 - SendTokenSvc - finish todo 2025-05-20 17:14:31 -04:00
Jared Snider
e4299dac26 PM-20532 - WIP on Send Token services. 2025-05-20 17:11:00 -04:00
Jared Snider
10f166269f PM-20532 - SendAccessTokenRequest - enshrine send client id in class instead of having as a constructor param. 2025-05-20 16:12:20 -04:00
Jared Snider
e5e5582971 PM-20532 - SendAccessTokenRequest - remove device 2025-05-20 15:58:13 -04:00
Bernd Schoolmann
d7c936e1ea [PM-17900] Add cose / xchacha20poly1305 migration on userkey rotation (#14539)
* Add new encrypt service functions

* Undo changes

* Cleanup

* Fix build

* Fix comments

* Switch encrypt service to use SDK functions

* Add cose migration on userkey rotation

* Update sdk

* Set featureflag to default disabled

* Add tests

* Update sdk to build 168

* Make changes according to feedback
2025-05-20 12:25:14 -07:00
Bernd Schoolmann
d93f547cfb [PM-21001] Move platform code to new encrypt service interface (#14544)
* Move platform code to new encrypt service interface

* Fix tests

* Fix tests

* Fix cli build
2025-05-20 19:45:40 +02:00
Brandon Treston
be7214d765 remove feature flag logic (#14841) 2025-05-20 10:33:48 -04:00
Jared Snider
c4c01fe681 PM-20532 - WIP on Send Token Svc 2025-05-19 19:06:34 -04:00
Jared Snider
c1f141f7db PM-20532 - WIP on SendTokenApiService 2025-05-19 18:52:38 -04:00
Maciej Zieniuk
239556b55f [PM-18017] Show key connector domain in remove password page (#14695)
* Passed in userId on RemovePasswordComponent.

* Added userId on other references to KeyConnectorService methods

* remove password component refactor, test coverage, enabled strict

* explicit user id provided to key connector service

* redirect to / instead when user not logged in or not managing organization

* key connector service explicit user id

* key connector service no longer requires account service

* key connector service missing null type

* cli convert to key connector unit tests

* remove unnecessary SyncService

* error toast not showing on ErrorResponse

* bad import due to merge conflict

* bad import due to merge conflict

* missing loading in remove password component for browser extension

* error handling in remove password component

* organization observable race condition in key-connector

* usesKeyConnector always returns boolean

* unit test coverage

* key connector reactive

* reactive key connector service

* introducing convertAccountRequired$

* cli build fix

* moving message sending side effect to sync

* key connector service unit tests

* fix unit tests

* move key connector components to KM team ownership

* new unit tests in wrong place

* key connector domain shown in remove password component

* type safety improvements

* convert to key connector command localization

* key connector domain in convert to key connector command

* convert to key connector command unit tests with prompt assert

* organization name placement change in the remove password component

* unit test update

* key connector url required to be provided when migrating user

* unit tests in wrong place after KM code ownership move

* infinite page reload

* failing unit tests

* failing unit tests

---------

Co-authored-by: Todd Martin <tmartin@bitwarden.com>
2025-05-19 08:58:51 -04:00
Maciej Zieniuk
e73f902aee [PM-18576] Fix missing user id on remove password (#13777)
* Passed in userId on RemovePasswordComponent.

* Added userId on other references to KeyConnectorService methods

* remove password component refactor, test coverage, enabled strict

* explicit user id provided to key connector service

* redirect to / instead when user not logged in or not managing organization

* key connector service explicit user id

* key connector service no longer requires account service

* key connector service missing null type

* cli convert to key connector unit tests

* remove unnecessary SyncService

* error toast not showing on ErrorResponse

* bad import due to merge conflict

* bad import due to merge conflict

* missing loading in remove password component for browser extension

* error handling in remove password component

* organization observable race condition in key-connector

* usesKeyConnector always returns boolean

* unit test coverage

* key connector reactive

* reactive key connector service

* introducing convertAccountRequired$

* cli build fix

* moving message sending side effect to sync

* key connector service unit tests

* fix unit tests

* unit tests in wrong place after KM code ownership move

* infinite page reload

* failing unit tests

* failing unit tests

---------

Co-authored-by: Todd Martin <tmartin@bitwarden.com>
2025-05-19 08:51:46 +02:00
Jared Snider
98371dd36f PM-20532 - SendAccessToken Request WIP on payload processing. 2025-05-18 16:02:13 -04:00
Jared Snider
5218ddf8eb PM-20532 - WIP on SendAccessTokenRequest + various enum creation & updates 2025-05-17 12:13:06 -04:00
SmithThe4th
b7bbf99682 Handle null or undefined fields (#14832) 2025-05-16 21:33:33 +00:00