1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00
bitwarden-server/test/Api.Test/SecretsManager/Controllers
Thomas Avery d1155ee376
[SM-704] Extract Authorization For ServiceAccounts (#2869)
* Move to access query for project commands

* Swap to hasAccess method per action

* Swap to authorization handler pattern

* Move ProjectOperationRequirement to Core

* Add default throw + tests

* Extract authorization out of commands

* Unit tests for authorization handler

* Formatting

* Swap to reflection for testing switch

* Swap to check read & reflections in test

* fix wording on exception

* Refactor GetAccessClient into its own query

* Use accessClientQuery in project handler
2023-05-31 13:49:58 -05:00
..
AccessPoliciesControllerTests.cs [SM-670] Add permission context to project lists. (#2822) 2023-04-26 13:09:25 -05:00
ProjectsControllerTests.cs [SM-702] Extract access policy checks from create/update project commands (#2842) 2023-05-03 09:40:24 -05:00
SecretsControllerTests.cs [SM-670] Add permission context to project lists. (#2822) 2023-04-26 13:09:25 -05:00
ServiceAccountsControllerTests.cs [SM-704] Extract Authorization For ServiceAccounts (#2869) 2023-05-31 13:49:58 -05:00