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