mirror of
https://github.com/bitwarden/server.git
synced 2026-02-06 09:03:21 +08:00
12 lines
385 B
C#
12 lines
385 B
C#
using Bit.Core.AdminConsole.Entities;
|
|
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Core.Auth.Identity;
|
|
|
|
public interface IOrganizationTwoFactorTokenProvider
|
|
{
|
|
Task<bool> CanGenerateTwoFactorTokenAsync(Organization organization);
|
|
Task<string> GenerateAsync(Organization organization, User user);
|
|
Task<bool> ValidateAsync(string token, Organization organization, User user);
|
|
}
|