1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 21:20:27 +00:00
Commit Graph

280 Commits

Author SHA1 Message Date
rr-bw
fbaa33eb32 initialize data before rendering InputPasswordComponent 2025-04-24 21:30:48 -07:00
rr-bw
fad4a5c158 increase test coverage of DefaultChangePasswordService 2025-04-24 16:01:56 -07:00
rr-bw
df8205f361 update DI of service 2025-04-24 13:49:44 -07:00
rr-bw
0389cf0044 update methods to throw on non-web clients 2025-04-24 12:23:08 -07:00
rr-bw
8a0729e82f pass down userId from SetPasswordJitComponent to InputPasswordComponent 2025-04-15 16:53:54 -07:00
rr-bw
240167328d move service to libs/auth/angular and update DI 2025-04-15 14:50:25 -07:00
rr-bw
78c8a0c52f update translation key 2025-04-15 13:51:29 -07:00
rr-bw
5e9c53f07b update tests 2025-04-15 13:51:28 -07:00
rr-bw
62ce38392e update Storybook and typing 2025-04-15 13:51:28 -07:00
rr-bw
447da626c5 update error handling 2025-04-15 13:51:28 -07:00
rr-bw
18f48439ca simplify changePassword(...) parameters 2025-04-15 13:51:28 -07:00
rr-bw
634b8c2ed6 update tests 2025-04-15 13:51:27 -07:00
rr-bw
2bf88c5008 add a flow to InputPasswordFlow enum, and a method to verify the flow and presence of a userId 2025-04-15 13:51:27 -07:00
rr-bw
a1d53e9840 resolve rebase discrepancies 2025-04-15 13:51:27 -07:00
rr-bw
72f8debc50 update typing 2025-04-15 13:51:27 -07:00
rr-bw
1cd3fed5cb update kdfConfig retrieval 2025-04-15 13:51:26 -07:00
rr-bw
d806ea2d31 update activeAccount retreival to happen just once 2025-04-15 13:51:26 -07:00
rr-bw
b0020c278b make userId a component property on ChangePasswordComponent, and pass userId down to child InputPasswordComponent 2025-04-15 13:51:26 -07:00
rr-bw
f3ae574f46 simplify getting activeAccount userId and
email
2025-04-15 13:51:26 -07:00
rr-bw
2a976a0db2 update typing 2025-04-15 13:51:25 -07:00
rr-bw
f9892f295e refactor rotateUserKey control and calling of setValue() 2025-04-15 13:51:25 -07:00
rr-bw
cc52fcc1e6 update newMasterKeyEncryptedUserKey creating in legacy performSubmitActions method 2025-04-15 13:51:25 -07:00
rr-bw
2e056a0f41 update @Input kdfConfig initial value 2025-04-15 13:51:25 -07:00
rr-bw
f52d5a171b update documentation, variable naming 2025-04-15 13:51:24 -07:00
rr-bw
deeced81c3 make sure passwordIsBreached is a boolean 2025-04-15 13:51:24 -07:00
rr-bw
d17c7e5a6b update inputPasswordFlow in PasswordSettingsComponent 2025-04-15 13:51:24 -07:00
rr-bw
50d5b0cb36 update storybook docs 2025-04-15 13:51:23 -07:00
rr-bw
9802add86b add tests 2025-04-15 13:51:23 -07:00
rr-bw
b262d11db1 remove comments 2025-04-15 13:51:23 -07:00
rr-bw
a698f4a9b4 change component name to ChangePasswordComponent 2025-04-15 13:51:23 -07:00
rr-bw
ab2e8d1deb update storybook 2025-04-15 13:51:22 -07:00
rr-bw
198aa7d9bd update changePassword(), submitOld(), DI, and variable naming 2025-04-15 13:51:22 -07:00
rr-bw
60066830a0 update InputPasswordComponent to work with currentPassword and current password related crypto properties 2025-04-15 13:51:22 -07:00
rr-bw
38e1988f3e rename to newMasterKey 2025-04-15 13:51:22 -07:00
rr-bw
6e70d0f817 add submitOld() to ChangePasswordComponent and rotateUserKeyClicked() to InputPasswordComponent 2025-04-15 13:51:22 -07:00
rr-bw
d2fd834a38 create a ChangePasswordService 2025-04-15 13:51:21 -07:00
rr-bw
0e6ad93371 update kdf param type, inputPasswordFlow on PasswordSettingsComponent 2025-04-15 13:51:21 -07:00
rr-bw
99f97a6414 add updatePassword() method 2025-04-15 13:51:21 -07:00
rr-bw
a29cafa92b add submit methods 2025-04-15 13:51:20 -07:00
rr-bw
5816628ec7 handle currentPassword evaluation 2025-04-15 13:51:20 -07:00
rr-bw
9fedf0ed56 add PasswordSettingsComponent ngOnInit 2025-04-15 13:51:20 -07:00
rr-bw
7eddf8b55a setup PasswordSettingsComponent and ChangeExistingPasswordComponent 2025-04-15 13:51:19 -07:00
Bernd Schoolmann
b09305577f [PM-19603] Change asymmetric interface to only allow key encapsulation (#14046)
* Change asymmetric interface to only allow key encapsulation

* Fix naming

* Clean up naming

* Update libs/common/src/key-management/crypto/abstractions/encrypt.service.ts

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update libs/common/src/key-management/crypto/services/encrypt.service.implementation.ts

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update libs/common/src/key-management/crypto/abstractions/encrypt.service.ts

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Fix test

---------

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-04-15 16:39:02 +02:00
Todd Martin
356a20a4bc fix(login): [PM-20174] Do not show validation errors on email input on LoginComponent
* Do not show validation errors on input

* Removed one-line function.

* Removed awaits
2025-04-14 15:55:01 -04:00
Todd Martin
f7934b98c6 fix(login): [PM-11502] Support Remember Email option consistently
* Moved saving of SSO email outside of browser/desktop code

* Clarified comments.

* Tests

* Refactored login component services to manage state

* Fixed input on login component

* Fixed tests

* Linting

* Moved web setting in state into web override

* updated tests

* Fixed typing.

* Fixed type safety issues.

* Added comments and renamed for clarity.

* Removed method parameters that weren't used

* Added clarifying comments

* Added more comments.

* Removed test that is not necessary on base

* Test cleanup

* More comments.

* Linting

* Fixed test.

* Fixed base URL

* Fixed typechecking.

* Type checking

* Moved setting of email state to default service

* Added comments.

* Consolidated SSO URL formatting

* Updated comment

* Fixed reference.

* Fixed missing parameter.

* Initialized service.

* Added comments

* Added initialization of new service

* Made email optional due to CLI.

* Fixed comment on handleSsoClick.

* Added SSO email persistence to v1 component.

* Updated login email service.

* Updated setting of remember me

* Removed unnecessary input checking and rearranged functions

* Fixed name

* Added handling of Remember Email to old component for passkey click

* Updated v1 component to persist the email on Continue click

* Fix merge conflicts.

* Merge conflicts in login component.

* Persisted login email on v1 browser component.

* Merge conflicts

* fix(snap) [PM-17464][PM-17463][PM-15587] Allow Snap to use custom callback protocol

* Removed Snap from custom protocol workaround

* Fixed tests.

* Updated case numbers on test

* Resolved PR feedback.

* PM-11502 - LoginEmailSvcAbstraction - mark methods as abstract to satisfy strict ts.

* Removed test

* Changed to persist on leaving fields instead of button click.

* Fixed type checking.

---------

Co-authored-by: Bernd Schoolmann <mail@quexten.com>
Co-authored-by: Jared Snider <jsnider@bitwarden.com>
Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com>
2025-04-10 18:58:49 -04:00
Bernd Schoolmann
5a1b0744f0 [PM-17665] Move cryptofunction service to km (#13285)
* Move cryptofunction service to km

* Fix formatting

* Fix import

* Fix build on desktop

* Fix build on browser and tests
2025-04-10 11:09:35 +02:00
rr-bw
a4040b6b6b refactor(set-change-password): [Auth/PM-17649] Move CompareInputs Validator (#14173)
This PR
- Moves the `compareInputs` validator to `libs/auth` (with some minor updates to the validator)
- Adds unit tests for `compareInputs`
- Removes the deprecated input validators from `InputsFieldMatch` along with the `inputs-field-match.validator.ts` file
2025-04-08 12:42:41 -07:00
rr-bw
81350a2ee1 Revert "refactor(set-change-password): [Auth/PM-17649] Move and test compareI…" (#14171)
This reverts commit ecb4b2d0b7.
2025-04-07 18:34:35 -07:00
rr-bw
ecb4b2d0b7 refactor(set-change-password): [Auth/PM-17649] Move and test compareInputs validator (#13553)
- Move the `compareInputs` validator to `libs/auth`
- Add tests for the `compareInputs` validator
- Delete the deprecated `InputsFieldMatch` class (inputs-field-match.validator.ts)
2025-04-07 15:04:24 -07:00
rr-bw
2267876860 refactor(set-change-password): [Auth/PM-18206] Update InputPasswordComponent to handle multiple flows (#13745)
Updates the InputPasswordComponent so that it can eventually be used in multiple set/change password scenarios.

Most importantly, this PR adds an InputPasswordFlow enum and @Input so that parent components can dictate which UI elements to show.
2025-04-07 11:58:50 -07:00