mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
* allow update of webauthnlogincredential * Added Tests * fixed tests to use commands * addressing various feedback items
30 lines
713 B
C#
30 lines
713 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Utilities;
|
|
using Fido2NetLib;
|
|
|
|
namespace Bit.Api.Auth.Models.Request.Webauthn;
|
|
|
|
public class WebAuthnLoginCredentialUpdateRequestModel
|
|
{
|
|
[Required]
|
|
public AuthenticatorAssertionRawResponse DeviceResponse { get; set; }
|
|
|
|
[Required]
|
|
public string Token { get; set; }
|
|
|
|
[Required]
|
|
[EncryptedString]
|
|
[EncryptedStringLength(2000)]
|
|
public string EncryptedUserKey { get; set; }
|
|
|
|
[Required]
|
|
[EncryptedString]
|
|
[EncryptedStringLength(2000)]
|
|
public string EncryptedPublicKey { get; set; }
|
|
|
|
[Required]
|
|
[EncryptedString]
|
|
[EncryptedStringLength(2000)]
|
|
public string EncryptedPrivateKey { get; set; }
|
|
}
|