1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 01:13:30 +00:00

[PM-5731] fix: tests a bit, needed some additional "arrange" steps

This commit is contained in:
Andreas Coroiu
2024-01-19 16:42:24 +01:00
parent 0dc281edc1
commit ad80defa40
2 changed files with 46 additions and 3 deletions

View File

@@ -60,6 +60,24 @@ namespace Bit.Core.Services
throw new NotAllowedError();
}
if (!userVerified && (assertionParams.RequireUserVerification || selectedCipher.Reprompt != CipherRepromptType.None)) {
_logService.Info(
"[Fido2Authenticator] Aborting because user verification was unsuccessful."
);
throw new NotAllowedError();
}
// if (
// !userVerified &&
// (params.requireUserVerification || selectedCipher.reprompt !== CipherRepromptType.None)
// ) {
// this.logService?.warning(
// `[Fido2Authenticator] Aborting because user verification was unsuccessful.`,
// );
// throw new Fido2AuthenticatorError(Fido2AuthenticatorErrorCode.NotAllowed);
// }
// TODO: IMPLEMENT this
return new Fido2AuthenticatorGetAssertionResult