Skip to content

Commit c83b0b1

Browse files
committed
Keep Tokenbinding around
1 parent 1d4449f commit c83b0b1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Src/Fido2/AuthenticatorResponse.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ protected AuthenticatorResponse(ReadOnlySpan<byte> utf8EncodedJson)
6363
[JsonPropertyName("origin")]
6464
public string Origin { get; }
6565

66+
// [Obsolete("This property is not used and will be removed in a future version once the conformance tool stops testing for it.")]
6667
[JsonPropertyName("tokenBinding")]
6768
public TokenBindingDto? TokenBinding { get; set; }
6869

@@ -86,10 +87,7 @@ protected void BaseVerify(IReadOnlySet<string> fullyQualifiedExpectedOrigins, Re
8687

8788
// 13?. Verify that the value of C.tokenBinding.status matches the state of Token Binding for the TLS connection over which the assertion was obtained.
8889
// If Token Binding was used on that TLS connection, also verify that C.tokenBinding.id matches the base64url encoding of the Token Binding ID for the connection.
89-
if (TokenBinding != null)
90-
{
91-
TokenBinding.Verify(requestTokenBindingId);
92-
}
90+
TokenBinding?.Verify(requestTokenBindingId);
9391
}
9492

9593
/*

0 commit comments

Comments
 (0)