-
-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy pathAuthenticatorAssertionRawResponse.cs
41 lines (32 loc) · 1.24 KB
/
AuthenticatorAssertionRawResponse.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
using Newtonsoft.Json;
using Fido2NetLib.Objects;
namespace Fido2NetLib
{
/// <summary>
/// Transport class for AssertionResponse
/// </summary>
public class AuthenticatorAssertionRawResponse
{
[JsonConverter(typeof(Base64UrlConverter))]
public byte[] Id { get; set; }
// might be wrong to base64url encode this...
[JsonConverter(typeof(Base64UrlConverter))]
public byte[] RawId { get; set; }
public AssertionResponse Response { get; set; }
public PublicKeyCredentialType? Type { get; set; }
public AuthenticationExtensionsClientOutputs Extensions { get; set; }
public class AssertionResponse
{
[JsonConverter(typeof(Base64UrlConverter))]
public byte[] AuthenticatorData { get; set; }
[JsonConverter(typeof(Base64UrlConverter))]
public byte[] Signature { get; set; }
[JsonProperty("clientDataJson")]
[JsonConverter(typeof(Base64UrlConverter))]
public byte[] ClientDataJson { get; set; }
[JsonProperty("userHandle")]
[JsonConverter(typeof(Base64UrlConverter), Required.AllowNull)]
public byte[] UserHandle { get; set; }
}
}
}