mirror of
https://github.com/bitwarden/server
synced 2025-12-20 18:23:44 +00:00
[PM-25652] Add endpoint to fetch key connector confirmation details (#6635)
* Add new endpoint and query for key connector * Add unit tests
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Bit.Core.KeyManagement.Models.Data;
|
||||
using Bit.Core.Models.Api;
|
||||
|
||||
namespace Bit.Api.KeyManagement.Models.Responses;
|
||||
|
||||
public class KeyConnectorConfirmationDetailsResponseModel : ResponseModel
|
||||
{
|
||||
private const string _objectName = "keyConnectorConfirmationDetails";
|
||||
|
||||
public KeyConnectorConfirmationDetailsResponseModel(KeyConnectorConfirmationDetails details,
|
||||
string obj = _objectName) : base(obj)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(details);
|
||||
|
||||
OrganizationName = details.OrganizationName;
|
||||
}
|
||||
|
||||
public KeyConnectorConfirmationDetailsResponseModel() : base(_objectName)
|
||||
{
|
||||
OrganizationName = string.Empty;
|
||||
}
|
||||
|
||||
public string OrganizationName { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user