mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00

* [PM-4167] feat: add support for `SupportsPrf` * [PM-4167] feat: add `prfStatus` property * [PM-4167] feat: add support for storing PRF keys * [PM-4167] fix: allow credentials to be created without encryption support * [PM-4167] fix: broken test * [PM-4167] chore: remove whitespace * [PM-4167] fix: controller test * [PM-4167] chore: improve readability of `GetPrfStatus` * [PM-4167] fix: make prf optional * [PM-4167] fix: commit missing controller change * [PM-4167] fix: tests
34 lines
771 B
C#
34 lines
771 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Utilities;
|
|
using Fido2NetLib;
|
|
|
|
namespace Bit.Api.Auth.Models.Request.Webauthn;
|
|
|
|
public class WebAuthnCredentialRequestModel
|
|
{
|
|
[Required]
|
|
public AuthenticatorAttestationRawResponse DeviceResponse { get; set; }
|
|
|
|
[Required]
|
|
public string Name { get; set; }
|
|
|
|
[Required]
|
|
public string Token { get; set; }
|
|
|
|
[Required]
|
|
public bool SupportsPrf { get; set; }
|
|
|
|
[EncryptedString]
|
|
[EncryptedStringLength(2000)]
|
|
public string EncryptedUserKey { get; set; }
|
|
|
|
[EncryptedString]
|
|
[EncryptedStringLength(2000)]
|
|
public string EncryptedPublicKey { get; set; }
|
|
|
|
[EncryptedString]
|
|
[EncryptedStringLength(2000)]
|
|
public string EncryptedPrivateKey { get; set; }
|
|
}
|
|
|