1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00
bitwarden-server/test/Core.Test
Shane Melton 904b2fe205
[AC-1192] Create endpoints for new Device Approvals page (#2993)
* [AC-1192] Create new OrganizationAuthRequestsController.cs

* [AC-1192] Introduce OrganizationAdminAuthRequest model

* [AC-1192] Add GetManyPendingByOrganizationId method to AuthRequest repository

* [AC-1192] Add new list pending organization auth requests endpoint

* [AC-1192] Add new GetManyAdminApprovalsByManyIdsAsync method to the AuthRequestRepository

* [AC-1192] Make the response device identifier optional for admin approval requests

* [AC-1192] Add endpoint for bulk denying admin device auth requests

* [AC-1192] Add OrganizationUserId to PendingOrganizationAuthRequestResponseModel

* [AC-1192] Add UpdateAuthRequest endpoint and logic to OrganizationAuthRequestsController

* [AC-1192] Secure new endpoints behind TDE feature flag

* [AC-1192] Formatting

* [AC-1192] Add sql migration script

* [AC-1192] Add optional OrganizationId column to AuthRequest entity

- Rename migration script to match existing formatting
- Add new column
- Add migration scripts
- Update new sprocs to filter/join on OrganizationId
- Update old sprocs to include OrganizationId

* [AC-1192] Format migration scripts

* [AC-1192] Fix failing AuthRequest EF unit test

* [AC-1192] Make OrganizationId optional in updated AuthRequest sprocs for backwards compatability

* [AC-1192] Fix missing comma in migration file

* [AC-1192] Rename Key to EncryptedUserKey to be more descriptive

* [AC-1192] Move request validation into helper method to reduce repetition

* [AC-1192] Return UnauthorizedAccessException instead of NotFound when user is missing permission

* [AC-1192] Introduce FeatureUnavailableException

* [AC-1192] Introduce RequireFeatureAttribute

* [AC-1192] Utilize the new RequireFeatureAttribute in the OrganizationAuthRequestsController

* [AC-1192] Attempt to fix out of sync database migration by moving new OrganizationId column

* [AC-1192] More attempts to sync database migrations

* [AC-1192] Formatting

* [AC-1192] Remove unused reference to FeatureService

* [AC-1192] Change Id types from String to Guid

* [AC-1192] Add EncryptedString attribute

* [AC-1192] Remove redundant OrganizationId property

* [AC-1192] Switch to projection for OrganizationAdminAuthRequest mapping

- Add new OrganizationUser relationship to EF entity
- Replace AuthRequest DBContext config with new IEntityTypeConfiguration
- Add navigation property to AuthRequest entity configuration for OrganizationUser
- Update EF AuthRequestRepository to use new mapping and navigation properties

* [AC-1192] Remove OrganizationUser navigation property
2023-06-15 14:54:08 -07: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-1969] Spellcheck other (#2878) 2023-05-17 12:14:36 +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 [PM-1270] Throw error when removing master password reset policy with TDE enabled (#2964) 2023-06-07 09:56:31 +01:00
Tokens Run formatting (#2230) 2022-08-29 16:06:55 -04:00
Tools [PM-1969] Spellcheck other (#2878) 2023-05-17 12:14:36 +02:00
Utilities [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
Vault [SG-998] Move files to Vault folders (#2724) 2023-03-02 13:23:38 -05:00
Core.Test.csproj [PM-1969] Spellcheck other (#2878) 2023-05-17 12:14:36 +02: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