1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/test/Core.Test
Rui Tomé 8d3fe12170
[EC-787] Create a method in PolicyService to check if a policy applies to a user (#2537)
* [EC-787] Add new stored procedure OrganizationUser_ReadByUserIdWithPolicyDetails

* [EC-787] Add new method IOrganizationUserRepository.GetByUserIdWithPolicyDetailsAsync

* [EC-787] Add OrganizationUserPolicyDetails to represent policies applicable to a specific user

* [EC-787] Add method IPolicyService.GetPoliciesApplicableToUser to filter the obtained policy data

* [EC-787] Returning PolicyData on stored procedures

* [EC-787] Changed GetPoliciesApplicableToUserAsync to return ICollection

* [EC-787] Switched all usings of IPolicyRepository.GetManyByTypeApplicableToUserIdAsync to IPolicyService.GetPoliciesApplicableToUserAsync

* [EC-787] Removed policy logic from BaseRequestValidator and added usage of IPolicyService.GetPoliciesApplicableToUserAsync

* [EC-787] Added unit tests for IPolicyService.GetPoliciesApplicableToUserAsync

* [EC-787] Added unit tests for OrganizationUserRepository.GetByUserIdWithPolicyDetailsAsync

* [EC-787] Changed integration test to check for single result

* [EC-787] Marked IPolicyRepository methods GetManyByTypeApplicableToUserIdAsync and GetCountByTypeApplicableToUserIdAsync as obsolete

* [EC-787] Returning OrganizationUserId on OrganizationUser_ReadByUserIdWithPolicyDetails

* [EC-787] Remove deprecated stored procedures Policy_CountByTypeApplicableToUser, Policy_ReadByTypeApplicableToUser and function PolicyApplicableToUser

* [EC-787] Added method IPolicyService.AnyPoliciesApplicableToUserAsync

* [EC-787] Removed 'OrganizationUserType' parameter from queries

* [EC-787] Formatted OrganizationUserPolicyDetailsCompare

* [EC-787] Renamed SQL migration files

* [EC-787] Changed OrganizationUser_ReadByUserIdWithPolicyDetails to return Permissions json

* [EC-787] Refactored excluded user types for each Policy

* [EC-787] Updated dates on dbo_future files

* [EC-787] Remove dbo_future files from sql proj

* [EC-787] Added parameter PolicyType to IOrganizationUserRepository.GetByUserIdWithPolicyDetailsAsync

* [EC-787] Rewrote OrganizationUser_ReadByUserIdWithPolicyDetails and added parameter for PolicyType

* Update util/Migrator/DbScripts/2023-03-10_00_OrganizationUserReadByUserIdWithPolicyDetails.sql

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

---------

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2023-05-12 08:22:19 +01:00
..
Auth [AC-1145] Add trusted devices option to SSO Config Data (#2909) 2023-05-10 12:52:08 -07:00
AutoFixture [PM-328] Move files for team-tools (#2857) 2023-04-18 14:05:17 +02:00
Entities [AC-1201] refactor: move all SCIM related files into the AdminConsole scope (#2841) 2023-04-19 09:31:00 +10:00
Helpers Run formatting (#2230) 2022-08-29 16:06:55 -04:00
Models [AC-1145] Add trusted devices option to SSO Config Data (#2909) 2023-05-10 12:52:08 -07:00
OrganizationFeatures [PM-328] Move files for team-tools (#2857) 2023-04-18 14:05:17 +02:00
Resources Run formatting (#2230) 2022-08-29 16:06:55 -04:00
SecretsManager/AutoFixture [SM-460] Isolate SecretsManager files (#2616) 2023-01-24 19:57:28 +01:00
Services [EC-787] Create a method in PolicyService to check if a policy applies to a user (#2537) 2023-05-12 08:22:19 +01:00
Tokens Run formatting (#2230) 2022-08-29 16:06:55 -04:00
Tools [EC-787] Create a method in PolicyService to check if a policy applies to a user (#2537) 2023-05-12 08:22:19 +01:00
Utilities [PS-1471] Create Allocation Free EncryptedStringAttribute validation (#2273) 2022-10-20 16:10:02 -04:00
Vault [SG-998] Move files to Vault folders (#2724) 2023-03-02 13:23:38 -05:00
Core.Test.csproj [SM-151] Move EF Dapper tests to Infrastructure.EFIntegration.Test (#2204) 2022-08-29 09:40:59 -04:00
packages.lock.json Update Azure.Extensions.AspNetCore.DataProtection.Blobs (#2821) 2023-04-10 12:10:11 -04:00
TempDirectory.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00