1
0
mirror of https://github.com/bitwarden/server synced 2026-01-21 11:53:41 +00: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,11 @@
CREATE TABLE [dbo].[U2f] (
[Id] INT NOT NULL IDENTITY,
[UserId] UNIQUEIDENTIFIER NOT NULL,
[KeyHandle] VARCHAR (50) NOT NULL,
[Challenge] VARCHAR (50) NOT NULL,
[AppId] VARCHAR (50) NOT NULL,
[Version] VARCHAR (50) NOT NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_U2f] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_U2f_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
);