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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user