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

add support for storing u2f challenges

This commit is contained in:
Kyle Spearrin
2017-06-21 16:55:45 -04:00
parent 50c0b3e752
commit 0c84f9c151
9 changed files with 179 additions and 0 deletions

View File

@ -0,0 +1,20 @@
using System;
namespace Bit.Core.Models.Table
{
public class U2f : IDataObject<int>
{
public int Id { get; set; }
public Guid UserId { get; set; }
public string KeyHandle { get; set; }
public string Challenge { get; set; }
public string AppId { get; set; }
public string Version { get; set; }
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
public void SetNewId()
{
// do nothing since it is an identity
}
}
}