From 210d06acb427bd0247cf91879fe7e6420ec4954c Mon Sep 17 00:00:00 2001 From: Maciej Zieniuk Date: Sat, 29 Mar 2025 16:12:32 +0000 Subject: [PATCH] revert new key management endpoints --- .../AccountsKeyManagementController.cs | 7 ++-- .../AccountsKeyManagementControllerTests.cs | 34 ++++++++----------- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs b/src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs index 6ac0bb6448..7b0c98243d 100644 --- a/src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs +++ b/src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs @@ -57,7 +57,8 @@ public class AccountsKeyManagementController : Controller emergencyAccessValidator, IRotationValidator, IReadOnlyList> organizationUserValidator, - IRotationValidator, IEnumerable> webAuthnKeyValidator) + IRotationValidator, IEnumerable> + webAuthnKeyValidator) { _userService = userService; _featureService = featureService; @@ -129,8 +130,6 @@ public class AccountsKeyManagementController : Controller throw new BadRequestException(ModelState); } - [HttpPost("key-management/set-key-connector-key")] - // Backwards compatibility, to be deleted in the future [HttpPost("set-key-connector-key")] public async Task PostSetKeyConnectorKeyAsync([FromBody] SetKeyConnectorKeyRequestModel model) { @@ -154,8 +153,6 @@ public class AccountsKeyManagementController : Controller throw new BadRequestException(ModelState); } - [HttpPost("key-management/convert-to-key-connector")] - // Backwards compatibility, to be deleted in the future [HttpPost("convert-to-key-connector")] public async Task PostConvertToKeyConnectorAsync() { diff --git a/test/Api.IntegrationTest/KeyManagement/Controllers/AccountsKeyManagementControllerTests.cs b/test/Api.IntegrationTest/KeyManagement/Controllers/AccountsKeyManagementControllerTests.cs index 054507976d..7acf475dde 100644 --- a/test/Api.IntegrationTest/KeyManagement/Controllers/AccountsKeyManagementControllerTests.cs +++ b/test/Api.IntegrationTest/KeyManagement/Controllers/AccountsKeyManagementControllerTests.cs @@ -175,7 +175,8 @@ public class AccountsKeyManagementControllerTests : IClassFixture