1
0
mirror of https://github.com/bitwarden/server synced 2025-12-06 00:03:34 +00:00

Add summary comments for MasterKeyWrappedUserKey in response models (#6531)

This commit is contained in:
Bernd Schoolmann
2025-11-04 12:42:07 +01:00
committed by GitHub
parent b4d6f3cb35
commit 7e54773a6e
2 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ namespace Bit.Core.KeyManagement.Models.Api.Response;
public class MasterPasswordUnlockResponseModel public class MasterPasswordUnlockResponseModel
{ {
public required MasterPasswordUnlockKdfResponseModel Kdf { get; init; } public required MasterPasswordUnlockKdfResponseModel Kdf { get; init; }
/// <summary>
/// The user's symmetric key encrypted with their master key.
/// Also known as "MasterKeyWrappedUserKey"
/// </summary>
[EncryptedString] public required string MasterKeyEncryptedUserKey { get; init; } [EncryptedString] public required string MasterKeyEncryptedUserKey { get; init; }
[StringLength(256)] public required string Salt { get; init; } [StringLength(256)] public required string Salt { get; init; }
} }

View File

@@ -13,6 +13,10 @@ public class MasterPasswordUnlockAndAuthenticationData
public required string Email { get; set; } public required string Email { get; set; }
public required string MasterKeyAuthenticationHash { get; set; } public required string MasterKeyAuthenticationHash { get; set; }
/// <summary>
/// The user's symmetric key encrypted with their master key.
/// Also known as "MasterKeyWrappedUserKey"
/// </summary>
public required string MasterKeyEncryptedUserKey { get; set; } public required string MasterKeyEncryptedUserKey { get; set; }
public string? MasterPasswordHint { get; set; } public string? MasterPasswordHint { get; set; }