1
0
mirror of https://github.com/bitwarden/server synced 2026-01-28 23:36:12 +00:00

comment(register): [PM-27084] Account Register Uses New Data Types - Added comments to clarify how these data types should be used.

This commit is contained in:
Patrick Pimentel
2025-12-30 22:38:08 -05:00
parent a705ea4c57
commit 227f3a01df
5 changed files with 21 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ namespace Bit.Core.KeyManagement.Models.Api.Request;
/// <summary>
/// Use this datatype when interfacing with requests to create a separation of concern.
/// See <see cref="MasterPasswordAuthenticationData"/> to
/// See <see cref="MasterPasswordAuthenticationData"/> to use for commands, queries, services.
/// </summary>
public class MasterPasswordAuthenticationDataRequestModel
{

View File

@@ -4,6 +4,10 @@ using Bit.Core.Utilities;
namespace Bit.Core.KeyManagement.Models.Api.Request;
/// <summary>
/// Use this datatype when interfacing with requests to create a separation of concern.
/// See <see cref="MasterPasswordUnlockData"/> to use for commands, queries, services.
/// </summary>
public class MasterPasswordUnlockDataRequestModel
{
public required KdfRequestModel Kdf { get; init; }

View File

@@ -1,8 +1,13 @@
using Bit.Core.Entities;
using Bit.Core.Exceptions;
using Bit.Core.KeyManagement.Models.Api.Request;
namespace Bit.Core.KeyManagement.Models.Data;
/// <summary>
/// Use this datatype when interfacing with commands, queries, services to create a separation of concern.
/// See <see cref="MasterPasswordAuthenticationDataRequestModel"/> to use for requests.
/// </summary>
public class MasterPasswordAuthenticationData
{
public required KdfSettings Kdf { get; init; }

View File

@@ -4,6 +4,12 @@ using Bit.Core.Enums;
namespace Bit.Core.KeyManagement.Models.Data;
/// <summary>
/// Probably shouldn't be used as we want to make sure that the unlock data and authentication data
/// can use separate kdf settings.
///
/// Should be cleaned up in the near future.
/// </summary>
public class MasterPasswordUnlockAndAuthenticationData
{
public KdfType KdfType { get; set; }

View File

@@ -1,8 +1,13 @@
using Bit.Core.Entities;
using Bit.Core.Exceptions;
using Bit.Core.KeyManagement.Models.Api.Request;
namespace Bit.Core.KeyManagement.Models.Data;
/// <summary>
/// Use this datatype when interfacing with commands, queries, services to create a separation of concern.
/// See <see cref="MasterPasswordUnlockDataRequestModel"/> to use for requests.
/// </summary>
public class MasterPasswordUnlockData
{
public required KdfSettings Kdf { get; init; }