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:
20
src/Core/Models/Table/U2f.cs
Normal file
20
src/Core/Models/Table/U2f.cs
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user