21 lines
934 B
C#
21 lines
934 B
C#
using Bit.Core.Utilities.Fido2;
|
|
|
|
namespace Bit.Core.Abstractions
|
|
{
|
|
public struct Fido2GetAssertionUserInterfaceCredential
|
|
{
|
|
public string CipherId { get; set; }
|
|
public Fido2UserVerificationPreference UserVerificationPreference { get; set; }
|
|
}
|
|
|
|
public interface IFido2GetAssertionUserInterface : IFido2UserInterface
|
|
{
|
|
/// <summary>
|
|
/// Ask the user to pick a credential from a list of existing credentials.
|
|
/// </summary>
|
|
/// <param name="credentials">The credentials that the user can pick from, and if the user must be verified before completing the operation</param>
|
|
/// <returns>The ID of the cipher that contains the credentials the user picked, and if the user was verified before completing the operation</returns>
|
|
Task<(string CipherId, bool UserVerified)> PickCredentialAsync(Fido2GetAssertionUserInterfaceCredential[] credentials);
|
|
}
|
|
}
|