1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-14 01:31:24 +01:00
bitwarden-server/src/Core
Jared McCannon f471fffe42
[PM-10317] Email Users For Org Claiming Domain (#5094)
* Revoking users when enabling single org and 2fa policies. Fixing tests.

* Added migration.

* Wrote tests and fixed bugs found.

* Patch build process

* Fixing tests.

* Added unit test around disabling the feature flag.

* Updated error message to be public and added test for validating the request.

* formatting

* Added some tests for single org policy validator.

* Fix issues from merge.

* Added sending emails to revoked non-compliant users.

* Fixing name. Adding two factor policy email.

* Send email when user has been revoked.

* Correcting migration name.

* Fixing templates and logic issue in Revoke command.

* Moving interface into its own file.

* Correcting namespaces for email templates.

* correcting logic that would not allow normal users to revoke non owners.

* Actually correcting the test and logic.

* dotnet format. Added exec to bottom of bulk sproc

* Update src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RevokeNonCompliantOrganizationUserCommand.cs

Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>

* Updated OrgIds to be a json string

* Fixing errors.

* Updating test

* Moving command result.

* Formatting and request rename

* 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.

* Code review changes

* Removing todos

* Corrected test name.

* Syncing filename to record name.

* Fixing up the tests.

* Added happy path test

* Naming corrections. And corrected EF query.

* added check against event service

* Code review changes.

* Fixing tests.

* splitting up tests

* Added templates and email side effect for claiming a domain.

* bringing changes from nc user changes.

* Switched to enqueue mail message.

* Filled in DomainClaimedByOrganization.html.hbs

* Added text document for domain claiming

* Fixing migration script.

* Remove old sproc

* Limiting sending of the email down to users who are a part of the domain being claimed.

* Added test for change

* Renames and fixed up email.

* Fixing up CSS

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
Co-authored-by: Rui Tome <rtome@bitwarden.com>
2024-12-05 14:59:35 +00:00
..
AdminConsole [PM-10317] Email Users For Org Claiming Domain (#5094) 2024-12-05 14:59:35 +00:00
Auth [PM-14245] Remove policy definitions feature flag (#5095) 2024-12-04 11:50:47 +10:00
Billing [PM-11516] Initial license file refactor (#5002) 2024-12-05 14:31:14 +00:00
Context [PM-13783] Battle harden ProviderType enum expansion (#5004) 2024-11-13 15:01:26 +01:00
Entities Device deactivation (#4963) 2024-10-31 17:05:13 -04:00
Enums PM-11123: Device Type mapping (#4768) 2024-09-23 23:02:32 +02:00
Exceptions [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
HostedServices Platform/pm 2535/upgrade to azure messaging servicebus (#3102) 2023-08-07 08:57:18 -05:00
Identity PM-11123: Device Type mapping (#4768) 2024-09-23 23:02:32 +02:00
IdentityServer [PM-6196] Cleanup distributed cache for identity (#3704) 2024-02-09 07:43:28 -05:00
Jobs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
KeyManagement [PM-13706] Add repository + stored procedures for private key regeneration (#4898) 2024-11-21 15:09:41 -06:00
MailTemplates/Handlebars [PM-10317] Email Users For Org Claiming Domain (#5094) 2024-12-05 14:59:35 +00:00
Models [PM-10317] Email Users For Org Claiming Domain (#5094) 2024-12-05 14:59:35 +00:00
NotificationCenter Fix swap notification commands to use UtcNow (#4919) 2024-10-21 12:10:03 -05:00
NotificationHub Remove FCMv1 feature flag (#5030) 2024-11-12 15:16:31 -05:00
OrganizationFeatures [PM-11516] Initial license file refactor (#5002) 2024-12-05 14:31:14 +00:00
Properties [Business Portal] BUG Fix localization (#1385) 2021-06-09 09:56:29 -05:00
Repositories [PM-12607] Move key rotation & validators to km ownership (#4941) 2024-11-21 19:17:04 +01:00
Resources Change error message (#4175) 2024-06-11 16:20:06 -04:00
SecretsManager PM-11123: Device Type mapping (#4768) 2024-09-23 23:02:32 +02:00
Services [PM-10317] Email Users For Org Claiming Domain (#5094) 2024-12-05 14:59:35 +00:00
Settings Shard notification hub (#4450) 2024-10-22 12:20:57 -04:00
Tokens Auth/PM-3275 - Changes to support TDE User without MP being able to Set a Password + misc refactoring (#3242) 2023-11-02 08:02:25 -07:00
Tools [PM-12607] Move key rotation & validators to km ownership (#4941) 2024-11-21 19:17:04 +01:00
Utilities Shard notification hub (#4450) 2024-10-22 12:20:57 -04:00
Vault [PM-12607] Move key rotation & validators to km ownership (#4941) 2024-11-21 19:17:04 +01:00
AssemblyInfo.cs Run dotnet format (#1764) 2021-12-16 15:35:09 +01:00
Constants.cs [PM-11516] Initial license file refactor (#5002) 2024-12-05 14:31:14 +00:00
Core.csproj [deps] DbOps: Update Microsoft.Azure.Cosmos to 3.46.0 (#5066) 2024-11-26 13:20:42 -05:00
licensing_dev.cer Feature/self hosted development (#1921) 2022-03-21 17:13:00 -05:00
licensing.cer prod licensing certs 2017-10-03 16:19:20 -04:00