1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-01 13:43:23 +01:00
Commit Graph

5296 Commits

Author SHA1 Message Date
jrmccannon
78f115980c
Fixing up CSS 2024-11-27 12:12:47 -06:00
jrmccannon
8db1c25aa6
Renames and fixed up email. 2024-11-27 12:03:11 -06:00
jrmccannon
efa160435e
Added test for change 2024-11-27 11:21:56 -06:00
jrmccannon
e0909e2487
Limiting sending of the email down to users who are a part of the domain being claimed. 2024-11-27 10:36:14 -06:00
jrmccannon
768a833744
Remove old sproc 2024-11-27 08:39:21 -06:00
jrmccannon
11c4de388d
Merge branch 'jmccannon/pm-10319-fix-migration-script' into ac/jmccannon/pm-10317-email-user-domain-verified 2024-11-27 08:38:00 -06:00
jrmccannon
934438a7ec
Fixing migration script. 2024-11-27 08:28:52 -06:00
Jared McCannon
c8930d44f2
Swapping [] for Array.Empty<string> (#5092) 2024-11-27 06:47:18 -06:00
Rui Tomé
674bd1e495
[PM-13026] Refactor remove and bulkremove methods to throw error if user is managed by an organization (#5034)
* Enhance RemoveOrganizationUserCommand to block removing managed users when account deprovisioning is enabled

* Refactor RemoveUsersAsync method to return just the OrgUserId and update related logic.

* Refactor RemoveOrganizationUserCommand to improve variable naming and remove unused logging method

* Add support for event system user in RemoveUsersAsync method. Refactor unit tests.

* Add xmldoc to IRemoveOrganizationUserCommand methods

* Refactor RemoveOrganizationUserCommand to use TimeProvider for event date retrieval and update unit tests accordingly

* Refactor RemoveOrganizationUserCommand to use constants for error messages

* Refactor unit tests to separate feature flag tests

* refactor: Update parameter names for clarity in RemoveOrganizationUserCommand

* refactor: Rename validation and repository methods for user removal clarity
2024-11-27 12:26:42 +00:00
jrmccannon
ceaf0f38de
Merge branch 'main' into ac/jmccannon/pm-10317-email-user-domain-verified
# Conflicts:
#	src/Core/AdminConsole/OrganizationFeatures/OrganizationDomains/VerifyOrganizationDomainCommand.cs
2024-11-26 16:41:21 -06:00
Jared McCannon
1b75e35c31
[PM-10319] - Revoke Non Complaint Users for 2FA and Single Org Policy Enablement (#5037)
- Revoking users when enabling single org and 2fa policies.
- Updated emails sent when users are revoked via 2FA or Single Organization policy enablement

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
2024-11-26 16:37:12 -06:00
jrmccannon
baab61774c
Added text document for domain claiming 2024-11-26 12:54:49 -06:00
jrmccannon
2759afd3c1
Filled in DomainClaimedByOrganization.html.hbs 2024-11-26 12:54:49 -06:00
jrmccannon
1d321e485b
Switched to enqueue mail message. 2024-11-26 12:54:47 -06:00
jrmccannon
eb79696dfb
bringing changes from nc user changes. 2024-11-26 12:54:05 -06:00
jrmccannon
68cdc343ea
Added templates and email side effect for claiming a domain. 2024-11-26 12:54:02 -06:00
renovate[bot]
8f703a29ac
[deps] DbOps: Update Microsoft.Azure.Cosmos to 3.46.0 (#5066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 13:20:42 -05:00
jrmccannon
d485305b20
splitting up tests 2024-11-26 11:16:45 -06:00
renovate[bot]
b974899127
[deps] Billing: Update Braintree to 5.28.0 (#5019)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com>
2024-11-25 14:30:32 -05:00
renovate[bot]
fd7ff2ac63
[deps] Billing: Update FluentAssertions to 6.12.2 (#5015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com>
2024-11-25 14:30:02 -05:00
renovate[bot]
07592e22b9
[deps]: Update Microsoft.NET.Test.Sdk to 17.12.0 (#5067)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2024-11-25 16:17:59 +01:00
renovate[bot]
c4ab5f31f5
[deps] Tools: Update aws-sdk-net monorepo (#5065)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 15:12:04 +01:00
jrmccannon
8669e90e18
Fixing tests. 2024-11-22 16:02:32 -06:00
Jared McCannon
0253c6fd84
Merge branch 'main' into ac/jmccannon/pm-10319-revoke-nc-users 2024-11-22 15:59:03 -06:00
jrmccannon
772b0577bb
Code review changes. 2024-11-22 15:55:52 -06:00
Justin Baur
dac8f66a59
Resolve AC Warnings (#4644)
* Resolve AC Warnings

* Remove Unneeded Changes

* Add Back RequiredAttribute

* Format
2024-11-22 16:05:15 -05:00
renovate[bot]
f4dd794cba
[deps] Platform: Update Quartz to 3.13.1 (#4655)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-22 13:01:45 +00:00
renovate[bot]
5dbda8c831
[deps] Tools: Update aws-sdk-net monorepo (#5056)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-22 12:21:47 +01:00
Thomas Avery
718ff219ed
[PM-13706] Add repository + stored procedures for private key regeneration (#4898)
* Add stored procedure

* Add repository
2024-11-21 15:09:41 -06:00
Bernd Schoolmann
fae8692d2a
[PM-12607] Move key rotation & validators to km ownership (#4941)
* Move key rotation & validators to km ownership

* Fix build errors

* Fix build errors

* Fix import ordering

* Update validator namespace

* Move key rotation data to km ownership

* Fix linting

* Fix namespaces

* Fix namespace

* Fix namespaces

* Move rotateuserkeycommandtests to km ownership
2024-11-21 19:17:04 +01:00
Matt Bishop
66d583165d
Merge branch 'main' into ac/jmccannon/pm-10319-revoke-nc-users 2024-11-21 08:34:26 -05:00
jrmccannon
1e7c17fdcd
added check against event service 2024-11-20 15:18:33 -06:00
Vijay Oommen
92b94fd4ee
PM-15066 added drop feature and unit tests. (#5053) 2024-11-20 15:18:05 -05:00
Alex Morask
052235bed6
[PM-15048] Update bank account verification to use descriptor code (#5048)
* Update verify bank account process to use descriptor code

* Run dotnet format
2024-11-20 14:36:50 -05:00
jrmccannon
2f3da19b64
Naming corrections. And corrected EF query. 2024-11-20 13:00:15 -06:00
Bernd Schoolmann
eb20adb53e
Add QA flag (#5005)
Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
Co-authored-by: aj-bw <81774843+aj-bw@users.noreply.github.com>
2024-11-20 13:24:29 -05:00
jrmccannon
273754adc6
Added happy path test 2024-11-20 12:07:17 -06:00
jrmccannon
d0dd776157
Fixing up the tests. 2024-11-20 11:49:24 -06:00
jrmccannon
37ca7ff6f8
Syncing filename to record name. 2024-11-20 08:36:33 -06:00
Conner Turnbull
77cde50ee1
Updated customer metadata when updating to use bank account (#5050) 2024-11-20 09:32:53 -05:00
Jimmy Vo
5227ee7d90
[PM-13746] Remove loggedInUserId parameter. (#5033)
1. Remove _organizationService.ValidateOrganizationUserUpdatePermissions since it is not needed for updating group associations.
2. Remove loggedInUserId since it's no longer needed.
3. Update/remove related tests.
2024-11-19 17:19:22 -05:00
jrmccannon
1d773456f1
Corrected test name. 2024-11-19 14:26:43 -06:00
jrmccannon
d4bd369918
Removing todos 2024-11-19 14:24:36 -06:00
jrmccannon
51d0b122f5
Code review changes 2024-11-19 13:51:17 -06:00
Ike
516608560e
Fixing organization Duo configuration verificaiton (#5047)
fix(TwoFactorAuthentication): Duo Configuration Validation method input order fixed for `ClientId`, `ClientSecret` from UpdateRequest object.
2024-11-19 09:41:08 -08:00
Conner Turnbull
44bf5619c8
Updated customer metadata to only store one old btCustomerId (#4997)
* Updated customer metadata to only store one old btCustomerId

* Updated to include case where old key already exists

* Updated SubscriberService to also save btCustomerId_old on the Stripe Customer's metadata

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-11-19 11:38:30 -05:00
cyprain-okeke
c76d615fad
[PM-13346] Email notification impacts (#5027)
* Changes for the email notification

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Remove Get SponsoringSponsoredEmailAsync method

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Remove unused policyRepository referrence

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Removed unused OrganizationSponsorshipResponse

* Rollback unrelated code changes

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Resolve the failing test

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Method to get policy status without login

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Refactor the email notification

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Remove unused property

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Remove unused property

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Fix line spacing

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* remove extra line

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Refactor base on the pr review

* Remove the unused interface

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Add changes for error message for disable policy

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
2024-11-19 17:37:01 +01:00
renovate[bot]
b2b0f1e70e
[deps] Auth: Update bootstrap to v5 [SECURITY] (#4881)
* [deps] Auth: Update bootstrap to v5 [SECURITY]

* Update bootstrap and import dependencies in site.scss

* Update site.scss to include the theme color 'dark'

* Refactor site.scss to merge the 'primary-accent' theme color into the existing theme colors

* Update bootstrap classes for v5

* Refactor form layout in Index.cshtml and AddExistingOrganization.cshtml

* Revert change to the shield icon in the navbar

* Fix organization form select inputs

* Fixed search input sizes

* Fix elements in Providers and Users search

* More bootstrap migration

* Revert change to tax rate delete button

* Add missing label classes in Users/Edit.cshtml

* More component migrations

* Refactor form classes and labels in CreateMsp.cshtml and CreateReseller.cshtml

* Update package dependencies in Sso

* Revert changes to Providers/Edit.cshtml

* Refactor CreateMultiOrganizationEnterprise.cshtml and Providers/Edit.cshtml for bootstrap 5

* Refactor webpack.config.js to use @popperjs/core instead of popper.js

* Remove popperjs package dependency

* Restore Bootstrap 4 link styling behavior

- Remove default text decoration
- Add underline only on hover

* Update Bootstrap to version 5.3.3

* Update deprecated text color classes from 'text-muted' to 'text-body-secondary' across various views

* Refactor provider edit view for bootstrap 5

* Remove underline in Add/Create organization links in provider page

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rui Tome <rtome@bitwarden.com>
Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
2024-11-19 12:04:54 +00:00
Ike
ab5d4738d6
[PM-8107] Remove Duo v2 from server (#4934)
refactor(TwoFactorAuthentication): Remove references to old Duo SDK version 2 code and replace them with the Duo SDK version 4 supported library DuoUniversal code.

Increased unit test coverage in the Two Factor Authentication code space. We opted to use DI instead of Inheritance for the Duo and OrganizaitonDuo two factor tokens to increase testability, since creating a testing mock of the Duo.Client was non-trivial.

Reviewed-by: @JaredSnider-Bitwarden
2024-11-18 15:58:05 -08:00
jrmccannon
82b65e03be
Realized this would throw a null error from the system domain verification. Adding unknown type to event system user. Adding optional parameter to SaveAsync in policy service in order to pass in event system user. 2024-11-15 10:55:32 -06:00