1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-30 13:33:24 +01:00
bitwarden-server/test/Core.Test/Services
Rui Tomé f2180aa7b7
[PM-10311] Account Management: Create helper methods for checking against verified domains (#4636)
* Add HasVerifiedDomainsAsync method to IOrganizationDomainService

* Add GetManagedUserIdsByOrganizationIdAsync method to IOrganizationUserRepository and the corresponding queries

* Fix case on the sproc OrganizationUser_ReadManagedIdsByOrganizationId parameter

* Update the EF query to use the Email from the User table

* dotnet format

* Fix IOrganizationDomainService.HasVerifiedDomainsAsync by checking that domains have been Verified and add unit tests

* Rename IOrganizationUserRepository.GetManagedUserIdsByOrganizationAsync

* Fix domain queries

* Add OrganizationUserRepository integration tests

* Add summary to IOrganizationDomainService.HasVerifiedDomainsAsync

* chore: Rename IOrganizationUserRepository.GetManagedUserIdsByOrganizationAsync to GetManyIdsManagedByOrganizationIdAsync

* Add IsManagedByAnyOrganizationAsync method to IUserRepository

* Add integration tests for UserRepository.IsManagedByAnyOrganizationAsync

* Refactor to IUserService.IsManagedByAnyOrganizationAsync and IOrganizationService.GetUsersOrganizationManagementStatusAsync

* chore: Refactor IsManagedByAnyOrganizationAsync method in UserService

* Refactor IOrganizationService.GetUsersOrganizationManagementStatusAsync to return IDictionary<Guid, bool>

* Extract IOrganizationService.GetUsersOrganizationManagementStatusAsync into a query

* Update comments in OrganizationDomainService to use proper capitalization

* Move OrganizationDomainService to AdminConsole ownership and update namespace

* feat: Add support for organization domains in enterprise plans

* feat: Add HasOrganizationDomains property to OrganizationAbility class

* refactor: Update GetOrganizationUsersManagementStatusQuery to use IApplicationCacheService

* Remove HasOrganizationDomains and use UseSso to check if Organization can have Verified Domains

* Refactor UserService.IsManagedByAnyOrganizationAsync to simply check the UseSso flag

* Add TODO comment for replacing 'UseSso' organization ability on user verified domain checks

* Bump date on migration script

* Add indexes to OrganizationDomain table

* Bump script migration date; Remove WITH ONLINE = ON from data migration.
2024-09-11 11:29:57 +01:00
..
AmazonSesMailDeliveryServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
AzureQueuePushNotificationServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
CollectionServiceTests.cs Log events from the import organization flow (#4632) 2024-08-28 08:19:48 +10:00
DeviceServiceTests.cs [PM-5052] Upgrade to .NET 8 (#3461) 2024-02-05 13:03:42 -05:00
HandlebarsMailServiceTests.cs AC Team code ownership moves: Organization pt. 1 (#3472) 2023-11-28 17:18:08 -06:00
InMemoryApplicationCacheServiceTests.cs [AC-1284] AC Team code ownership moves - Provider (#3359) 2023-10-26 13:38:29 -04:00
InMemoryServiceBusApplicationCacheServiceTests.cs [AC-1284] AC Team code ownership moves - Provider (#3359) 2023-10-26 13:38:29 -04:00
LaunchDarklyFeatureServiceTests.cs Provide client device type and version info in feature flag contexts (#4755) 2024-09-10 12:49:46 -04:00
LicensingServiceTests.cs AC Team code ownership moves: Organization pt. 1 (#3472) 2023-11-28 17:18:08 -06:00
LocalAttachmentStorageServiceTests.cs [PM-1969] Spellcheck other (#2878) 2023-05-17 12:14:36 +02:00
MailKitSmtpMailDeliveryServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
MultiServicePushNotificationServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
NotificationHubPushNotificationServiceTests.cs [SG-419] Added logging to mobile push notifications (#2332) 2022-10-19 10:22:40 -04:00
NotificationHubPushRegistrationServiceTests.cs [PM-6977] Migrate to FCM v1 (redo) (#4046) 2024-05-02 16:37:06 -04:00
NotificationsApiPushNotificationServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
RelayPushNotificationServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
RelayPushRegistrationServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
SendGridMailDeliveryServiceTests.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
StripePaymentServiceTests.cs Removed automatic tax feature flag (#4487) 2024-07-10 07:32:41 -04:00
UserServiceTests.cs [PM-10311] Account Management: Create helper methods for checking against verified domains (#4636) 2024-09-11 11:29:57 +01:00