1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

Upgrade FIDO2 library usage out of beta (#2579)

This commit is contained in:
Matt Bishop
2023-01-19 11:06:51 -05:00
committed by GitHub
parent 354caa3063
commit 352b42b535
40 changed files with 1363 additions and 1065 deletions

View File

@ -442,9 +442,9 @@ public class UserService : UserManager<User>, IUserService, IDisposable
var options = CredentialCreateOptions.FromJson((string)provider.MetaData["pending"]);
// Callback to ensure credential id is unique. Always return true since we don't care if another
// account uses the same 2fa key.
IsCredentialIdUniqueToUserAsyncDelegate callback = args => Task.FromResult(true);
// Callback to ensure credential ID is unique. Always return true since we don't care if another
// account uses the same 2FA key.
IsCredentialIdUniqueToUserAsyncDelegate callback = (args, cancellationToken) => Task.FromResult(true);
var success = await _fido2.MakeNewCredentialAsync(attestationResponse, options, callback);