1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-09 03:53:15 +00:00

[PM-5731] feat: add user does not consent test

This commit is contained in:
Andreas Coroiu
2024-01-19 15:18:46 +01:00
parent dbe4110027
commit 378551e2d5
2 changed files with 65 additions and 4 deletions

View File

@@ -49,6 +49,17 @@ namespace Bit.Core.Services
CipherIds = cipherOptions.Select((cipher) => cipher.Id).ToArray(),
UserVerification = assertionParams.RequireUserVerification
});
var selectedCipherId = response.CipherId;
var userVerified = response.UserVerified;
var selectedCipher = cipherOptions.FirstOrDefault((c) => c.Id == selectedCipherId);
if (selectedCipher == null) {
_logService.Info(
"[Fido2Authenticator] Aborting because the selected credential could not be found."
);
throw new NotAllowedError();
}
// TODO: IMPLEMENT this
return new Fido2AuthenticatorGetAssertionResult