1
0
mirror of https://github.com/bitwarden/server synced 2025-12-31 07:33:43 +00:00

PM-30125 - IdentityTokenResponse - mark fields as deprecated (#6773)

This commit is contained in:
Jared Snider
2025-12-22 15:29:28 -05:00
committed by GitHub
parent 2dce8722d6
commit a82365b5df

View File

@@ -659,6 +659,7 @@ public abstract class BaseRequestValidator<T> where T : class
var customResponse = new Dictionary<string, object>();
if (!string.IsNullOrWhiteSpace(user.PrivateKey))
{
// PrivateKey usage is now deprecated in favor of AccountKeys
customResponse.Add("PrivateKey", user.PrivateKey);
var accountKeys = await _accountKeysQuery.Run(user);
customResponse.Add("AccountKeys", new PrivateKeysResponseModel(accountKeys));
@@ -666,6 +667,7 @@ public abstract class BaseRequestValidator<T> where T : class
if (!string.IsNullOrWhiteSpace(user.Key))
{
// Key is deprecated in favor of UserDecryptionOptions.MasterPasswordUnlock.MasterKeyEncryptedUserKey
customResponse.Add("Key", user.Key);
}