Skip to content

Commit 2045075

Browse files
googyiabergs
authored andcommitted
unit test fix (tokenbinding dto parsing)
1 parent 46d291e commit 2045075

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Src/Fido2/TokenBindingDto.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace Fido2NetLib
1+
using System.Text.Json.Serialization;
2+
3+
namespace Fido2NetLib
24
{
35
public class TokenBindingDto
46
{
@@ -7,11 +9,13 @@ public class TokenBindingDto
79
/// supported: Indicates the client supports token binding, but it was not negotiated when communicating with the Relying Party.
810
/// present: Indicates token binding was used when communicating with the Relying Party. In this case, the id member MUST be present
911
/// </summary>
12+
[JsonPropertyName("status")]
1013
public string? Status { get; set; }
1114

1215
/// <summary>
1316
/// This member MUST be present if status is present, and MUST a base64url encoding of the Token Binding ID that was used when communicating with the Relying Party.
1417
/// </summary>
18+
[JsonPropertyName("id")]
1519
public string? Id { get; set; }
1620

1721
public void Verify(byte[]? requestTokenbinding)

0 commit comments

Comments
 (0)