mirror of
https://github.com/bitwarden/server
synced 2026-01-07 11:03:37 +00:00
Add-userid-to-encryption-methods (#5838)
* Add userId to auth success response * Validate user that encrypted a cipher matches the user posting the request * Remove userId from auth success we don't want to expand this response model
This commit is contained in:
@@ -11,6 +11,10 @@ namespace Bit.Api.Vault.Models.Request;
|
||||
|
||||
public class CipherRequestModel
|
||||
{
|
||||
/// <summary>
|
||||
/// The Id of the user that encrypted the cipher. It should always represent a UserId.
|
||||
/// </summary>
|
||||
public Guid? EncryptedFor { get; set; }
|
||||
public CipherType Type { get; set; }
|
||||
|
||||
[StringLength(36)]
|
||||
|
||||
Reference in New Issue
Block a user