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:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user