You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fido2-net-lib/AuthenticatorAssertionResponse.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ public async Task<AssertionVerificationResult> VerifyAsync(AssertionOptions opti
113
113
// See Server-ServerAuthenticatorAssertionResponse-Resp3 Test server processing authenticatorData
114
114
// P-5 Send a valid ServerAuthenticatorAssertionResponse both authenticatorData.flags.UV and authenticatorData.flags.UP are not set, for userVerification set to "preferred", and check that server succeeds
115
115
// P-8 Send a valid ServerAuthenticatorAssertionResponse both authenticatorData.flags.UV and authenticatorData.flags.UP are not set, for userVerification set to "discouraged", and check that server succeeds
116
-
if((false==authData.UserPresent)&&(options.UserVerification!=UserVerificationRequirement.Discouraged&&options.UserVerification!=UserVerificationRequirement.Preferred))thrownewFido2VerificationException("User Present flag not set in authenticator data");
116
+
//if ((false == authData.UserPresent) && (options.UserVerification != UserVerificationRequirement.Discouraged && options.UserVerification != UserVerificationRequirement.Preferred)) throw new Fido2VerificationException("User Present flag not set in authenticator data");
117
117
118
118
// 13 If user verification is required for this assertion, verify that the User Verified bit of the flags in aData is set.
// If we have both, we can read from either and update cache as necessary
346
346
_accessToken=accessToken;
347
347
_cacheDir=cachedirPath;
348
-
if(0x30!=_accessToken.Length&&3>_cacheDir.Length)thrownewFido2VerificationException("Either MDSAccessToken or CacheDir is required to instantiate Metadata instance");
348
+
if(null!=_accessToken&&0x30!=_accessToken.Length&&null!=_cacheDir&&3>_cacheDir.Length)thrownewFido2VerificationException("Either MDSAccessToken or CacheDir is required to instantiate Metadata instance");
0 commit comments