blob: 670eccc007812b0c798c800739c4f900ff4daaf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System.Text.Json.Serialization;
#nullable enable
namespace VNLib.Plugins.Essentials.Accounts.MFA
{
/// <summary>
/// Represents a fido device registration message to be sent
/// to a currently signed in user
/// </summary>
class FidoRegistrationMessage
{
[JsonPropertyName("id")]
public string? GuidUserId { get; set; }
[JsonPropertyName("challenge")]
public string? Base64Challenge { get; set; } = null;
[JsonPropertyName("timeout")]
public int Timeout { get; set; } = 60000;
[JsonPropertyName("cose_alg")]
public int CoseAlgNumber { get; set; }
[JsonPropertyName("rp_name")]
public string? SiteName { get; set; }
[JsonPropertyName("attestation")]
public string? AttestationType { get; set; } = "none";
[JsonPropertyName("authenticatorSelection")]
public FidoAuthenticatorSelection? AuthSelection { get; set; } = new();
}
}
|