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

300 Commits

Author SHA1 Message Date
Patrick Pimentel
e6913dca03 Merge remote-tracking branch 'origin' into auth/pm-18720/change-password-component-non-dialog-v3 2025-06-23 15:39:09 -04:00
Patrick Pimentel
c3ff1413e9 fix(change-password-component): Change Password Update [18720] - Split up org invite service into client specific implementations and have them injected into clients properly 2025-06-23 15:34:24 -04:00
Patrick Pimentel
2d882436e7 fix(change-password-component): Change Password Update [18720] - Small changes. 2025-06-22 22:18:43 -04:00
Patrick Pimentel
735a114baa fix(change-password-component): Change Password Update [18720] - Took org invite state out of service and made it accessible. 2025-06-22 21:40:21 -04:00
Vicki League
df4aae2fb2 [CL-700] Move auth-owned layout components to UIF ownership (#15093) 2025-06-17 13:33:01 -04:00
Jared Snider
bfb0b874ed fix(Multi-Account-Logout: [Auth/PM-19555] Fix multi account logout on lock screens not redirecting properly (#14630)
* PM-19555 - LogoutService - build abstraction, default, and extension service and register with service modules

* PM-19555 - Lock Comp - use logoutService

* PM-19555 - LoginDecryptionOptions - Use logout service which removed need for extension-login-decryption-options.service

* PM-19555 - AccountSwitcher logic update - (1) Use logout service + redirect guard routing (2) Remove logout method from account switcher service (3) use new NewActiveUser type

* PM-19555 - Extension - Acct Switcher comp - clean up TODOs

* PM-19555 - Add TODOs for remaining tech debt

* PM-19555 - Add tests for new logout services.

* PM-19555 - Extension - LoginInitiated - show acct switcher b/c user is AuthN

* PM-19555 - Add TODO to replace LogoutCallback with LogoutService

* PM-19555 WIP

* PM-19555 - Extension App Comp - account switching to account in TDE locked state works now.

* PM-19555 - Extension App Comp - add docs

* PM-19555 - Extension App Comp - add early return

* PM-19555 - Desktop App Comp - add handling for TDE lock case to switch account logic.

* PM-19555 - Extension - Account Component - if account unlocked go to vault

* PM-19555 - Per PR feedback, clean up unnecessary nullish coalescing operator.

* PM-19555 - Extension - AppComponent - fix everHadUserKey merge issue

* PM-19555 - PR feedback - refactor switchAccount and locked message handling on browser & desktop to require user id. I audited all callsites for both to ensure this *shouldn't* error.
2025-06-13 13:22:04 -04:00
Patrick Pimentel
815f379c24 feat(change-password-component): Change Password Update [18720] - Removed unneeded code. 2025-06-11 21:56:23 -06:00
Patrick Pimentel
ef6dc1b80b feat(change-password-component): Change Password Update [18720] - Removed comment. 2025-06-11 21:44:03 -06:00
Patrick Pimentel
7bae3d9f6b feat(change-password-component): Change Password Update [18720] - Minor fixes. 2025-06-11 21:19:46 -06:00
Thomas Avery
c52e6a3f2c [PM-22408] Remove setMasterKeyEncryptedUserKey from KeyService (#15087)
* Swap consumers to masterPasswordService.setMasterKeyEncryptedUserKey

* Remove setMasterKeyEncryptedUserKey from keyService

* unit tests
2025-06-11 15:48:18 -05:00
Patrick Pimentel
0e2d6f0a06 Merge remote-tracking branch 'origin' into auth/pm-18720/change-password-component-non-dialog-v3 2025-06-10 16:51:21 -06:00
Patrick Pimentel
2f100f76d5 feat(change-password-component): Change Password Update [18720] - The master password policy endpoint has been added! Should be working. Testing now. 2025-06-10 16:50:44 -06:00
Patrick Pimentel
bd13e3b4b5 feat(change-password-component): Change Password Update [18720] - Committing intermediate changes. 2025-06-09 09:30:48 -06:00
Patrick Pimentel
28da2c9615 feat(change-password-component): Change Password Update [18720] - Found a bug, working on password policy being present on login. 2025-06-05 15:24:43 -04:00
Bernd Schoolmann
509af7b7bd [PM-20235] Disable login with device masterpasswordhash flow (#14236)
* Disable login with device masterpasswordhash flow

* Remove old test

* Fix tests

* Undo changes to cargo lock
2025-06-05 16:52:48 +00:00
Addison Beck
299976e55a fix(eslint): extend tsconfig.base in tsconfig.eslint (#15082)
* fix(eslint): extend tsconfig.base in tsconfig.eslint

* fix(eslint): clean up new lint errors
2025-06-05 11:08:03 -04:00
Patrick Pimentel
2c7da3bb0f feat(change-password-component): Change Password Update [18720] - Should be working fully 2025-06-04 14:55:49 -04:00
Patrick Pimentel
29748e152f fix(change-password-component): Change Password Update [18720] - Wrapping up changes. 2025-06-04 10:28:44 -04:00
Oscar Hinton
8f74eaea1c Remove standalone true from auth (#15035)
Remove standalone: true from every instance since it's the default as of Angular 19.
2025-06-04 09:22:37 -04:00
Patrick Pimentel
45bc4929a1 Merge remote-tracking branch 'origin' into auth/pm-18720/change-password-component-non-dialog-v3 2025-06-03 09:53:12 -04:00
Patrick Pimentel
db16cf0115 refactor(change-password-component): Change Password Update [18720] - Fixed up policy service to be made more clear. 2025-06-02 21:09:28 -04:00
Bernd Schoolmann
23ec6bacc9 [PM-20225] Prevent legacy users without userkey from logging in (#14267)
* Prevent legacy users without userkey from logging in

* Remove further web-migration code for legacy users

* Add i18n for legacy user error message

* Update comment

* Remove migrate legacy component

* Remove i18n messages

* Remove migrate legacy encryption reference
2025-06-02 23:56:29 +02:00
Addison Beck
26caeb3083 Implement and extend tsconfig.base across projects (#14554)
* Implement and extend tsconfig.base across projects

* fixup! Merge remote-tracking branch 'origin/main' into rename-tsconfig

* fix: import tsconfig.base from components

* fix: skip typechecking node modules

* fixing tests

* fix the tests for real

* undo accidentally change
2025-06-02 20:38:17 +00:00
Patrick Pimentel
14e9d35c62 Merge remote-tracking branch 'origin' into auth/pm-18720/change-password-component-non-dialog-v3 2025-06-02 14:54:34 -04:00
Oscar Hinton
2fbc4c1578 [CL-525] Upgrade angular to v19 (#14815)
Upgrade Angular to v19 using the update guide.

- Add `standalone: false` to any missed component in stories or tests.
- Update jest.config to follow the new best practices.
2025-06-02 13:13:31 -04:00
Patrick Pimentel
bb11db344f feat(change-password-component): Change Password Update [18720] - Org invite is seemingly working, found one bug to iron out. 2025-05-30 10:40:27 -04:00
Patrick Pimentel
06039927bb feat(change-password-component): Change Password Update [18720] - Small changes and added some clarification on where I'm blocked 2025-05-28 22:16:49 -04:00
Patrick Pimentel
2fc076bb3c feat(change-password-component): Change Password Update [18720] - Small directive change. 2025-05-28 15:02:17 -04:00
Patrick Pimentel
1a77128529 feat(change-password-component): Change Password Update [18720] - Undid some changes because they will be conflicts later on. 2025-05-28 14:29:33 -04:00
Patrick Pimentel
fc16411e18 Merge remote-tracking branch 'origin' into auth/pm-18720/change-password-component-non-dialog-v3 2025-05-28 13:00:40 -04:00
Patrick Pimentel
ec81662dcf feat(change-password-component): Change Password Update [18720] - Small fixes to the styling 2025-05-27 17:13:25 -04:00
Patrick Pimentel
7386fd8780 feat(change-password-component): Change Password Update [18720] - Tidied up code. 2025-05-27 16:24:17 -04:00
rr-bw
98e4551f70 fix(PasswordLoginStrategy): [Auth/PM-21913] Fix Weak MP Login Bug (#14906)
Adds an early `return` after receiving an `IdentityTwoFactorResponse`.
2025-05-23 12:02:01 -07:00
Patrick Pimentel
0be93fa65f feat(change-password-component): Change Password Update [18720] - Pausing work for now while we wait for product to hear back. 2025-05-23 14:30:46 -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
Patrick Pimentel
913b7ec5d6 feat(change-password-component): Change Password Update [18720] - More extension work 2025-05-22 19:11:09 -04:00
Patrick Pimentel
227df2fc86 fix(change-password-component): Change Password Update [18720] - Updates to routing and the extension. Extension is still a wip. 2025-05-22 15:59:45 -04:00
Patrick Pimentel
0aedba8740 fix(policy-enforcement): [PM-21085] Fix Bug with Policy Enforcement - Made code more dry. 2025-05-22 11:37:14 -04:00
Patrick Pimentel
628fd3b8d4 fix(policy-enforcement): [PM-21085] Fix Bug with Policy Enforcement - Recover account working with change password component. 2025-05-21 20:01:56 -04:00
Patrick Pimentel
f45e2d7d8a feat(change-password-component): Change Password Update [18720] - Very close to complete. 2025-05-21 14:55:31 -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
Brandon Treston
be7214d765 remove feature flag logic (#14841) 2025-05-20 10:33:48 -04:00
Alec Rippberger
72cfc0bca1 fix(environment-urls): [PM-19890] [Defect][Extension] Environment URLs are removed (#14821)
* Return early to avoid setEnvironment

* Remove ts-strict-ignore and update typing
2025-05-19 15:14:12 -04:00
rr-bw
afbddeaf86 refactor(set-change-password): [Auth/PM-18458] Create new ChangePasswordComponent (#14226)
This PR creates a new ChangePasswordComponent. The first use-case of the ChangePasswordComponent is to place it inside a new PasswordSettingsComponent, which is accessed by going to Account Settings > Security.

The ChangePasswordComponent will be updated in future PRs to handle more change password scenarios.

Feature Flags: PM16117_ChangeExistingPasswordRefactor
2025-05-16 10:41:46 -07:00
Oscar Hinton
c8629b92d3 [CL-694] Remove unused imports (#14795)
* Remove unused imports

* Remove more unused imports
2025-05-16 17:11:18 +02:00
Justin Baur
07dc8808b2 Use sync option to skip token refresh after login (#14581) 2025-05-14 14:34:34 -04:00
Todd Martin
4c68f61d47 feat(CLI-SSO-Login): [Auth/PM-21116] CLI - SSO Login - Add SSO Org Identifier option (#14605)
* Add --identifier option for SSO on CLI

* Add option for identifier

* Moved auto-submit after the setting of client arguments

* Adjusted comment

* Changed to pass in as SSO option

* Renamed to orgSsoIdentifier for clarity

* Added more changes to orgSsoIdentifier.
2025-05-13 10:58:48 -04:00
Patrick-Pimentel-Bitwarden
0b0397c3f0 fix(enums-eslint): Enum Rule for ESLint (#14650)
* fix(enums-eslint): Enum Rule for ESLint - Added enums in the warnings for eslint.

* fix(enums-eslint): Enum Rule for ESLint - Updated to error in both places for enums.

* fix(enums-eslint): Enum Rule for ESLint - Added new eslint plugin for warning on enums.

* fix(enums-eslint): Enum Rule for ESLint - Changed based on suggestion.

Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com>

* refactor(browser-platform-utils): Remove Deprecation and Fix Code - Changed usages of firefox to private and moved the usages to the preferred public method and removed the deprecations.

* fix(enums-eslint): Enum Rule for ESLint - Updated to error and added disable rules for all other places.

* fix(enums-eslint): Enum Rule for ESLint - Undid other changes by accident
2025-05-13 10:07:38 -04:00
Todd Martin
b8074a6f73 chore(feature-flag): Remove pm-9112-device-approval-persistence (#14718) 2025-05-12 15:18:02 -04:00
Todd Martin
eed18c9294 chore(view-cache): [PM-21154] Move view-cache its own feature package and adjust imports
* Moved view-cache services to directory

* Fixed DI for browser extension.

* Fixed tests.
2025-05-12 14:26:52 -04:00