1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-11 15:17:44 +01:00
bitwarden-server/src/Core/Identity/IOrganizationTwoFactorTokenProvider.cs

13 lines
402 B
C#
Raw Normal View History

2018-04-03 20:31:33 +02:00
using System.Threading.Tasks;
using Bit.Core.Models.Table;
namespace Bit.Core.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);
}
}