1
0
mirror of https://github.com/bitwarden/server synced 2026-01-05 10:03:23 +00:00
Files
server/src/Core/Identity/IOrganizationTwoFactorTokenProvider.cs
2018-04-03 14:31:33 -04:00

13 lines
402 B
C#

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);
}
}