Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/spa-templates.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Kung <HaoK@users.noreply.github.com>2021-07-19 22:49:42 +0300
committerGitHub <noreply@github.com>2021-07-19 22:49:42 +0300
commitd3f9640dde4f8bccb7c6890aea03ccbc33ffaca8 (patch)
tree5fe34f2e37ea2865ffb6c00079df5a54fe7312a8
parent65d7a026c6566afe4af7463648bba5e06db925da (diff)
parent582be0824b34f7b1fab459592f6266bb8f77b704 (diff)
Merge pull request #2 from dotnet/haok/spa
IdentityServer4 -> Duende for Spa
-rw-r--r--src/content/Angular-CSharp/Data/ApplicationDbContext.cs2
-rw-r--r--src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs45
-rw-r--r--src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs31
-rw-r--r--src/content/Angular-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs45
-rw-r--r--src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs44
-rw-r--r--src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs31
-rw-r--r--src/content/Angular-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs44
-rw-r--r--src/content/React-CSharp/Data/ApplicationDbContext.cs2
-rw-r--r--src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs43
-rw-r--r--src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs31
-rw-r--r--src/content/React-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs43
-rw-r--r--src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs44
-rw-r--r--src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs31
-rw-r--r--src/content/React-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs44
14 files changed, 462 insertions, 18 deletions
diff --git a/src/content/Angular-CSharp/Data/ApplicationDbContext.cs b/src/content/Angular-CSharp/Data/ApplicationDbContext.cs
index bdac72a..8d959d9 100644
--- a/src/content/Angular-CSharp/Data/ApplicationDbContext.cs
+++ b/src/content/Angular-CSharp/Data/ApplicationDbContext.cs
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.ApiAuthorization.IdentityServer;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
-using IdentityServer4.EntityFramework.Options;
+using Duende.IdentityServer.EntityFramework.Options;
using Company.WebApplication1.Models;
namespace Company.WebApplication1.Data;
diff --git a/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs b/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs
index 259c3c7..d0f2c77 100644
--- a/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs
+++ b/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs
@@ -86,7 +86,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -136,7 +136,46 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime2");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasMaxLength(50000);
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("bit");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("bit");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<int>("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
@@ -180,6 +219,8 @@ namespace Company.WebApplication1.Data.Migrations
b.HasKey("Key");
+ b.HasIndex("ConsumedTime");
+
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");
diff --git a/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs b/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs
index da38a79..aa6cbcd 100644
--- a/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs
+++ b/src/content/Angular-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs
@@ -66,6 +66,24 @@ namespace Company.WebApplication1.Data.Migrations
});
migrationBuilder.CreateTable(
+ name: "Keys",
+ columns: table => new
+ {
+ Id = table.Column<string>(type: "nvarchar(450)", nullable: false),
+ Version = table.Column<int>(type: "int", nullable: false),
+ Created = table.Column<DateTime>(type: "datetime2", nullable: false),
+ Use = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: true),
+ Algorithm = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
+ IsX509Certificate = table.Column<bool>(type: "bit", nullable: false),
+ DataProtected = table.Column<bool>(type: "bit", nullable: false),
+ Data = table.Column<string>(type: "nvarchar(max)", maxLength: 50000, nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Keys", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
name: "PersistedGrants",
columns: table => new
{
@@ -242,6 +260,16 @@ namespace Company.WebApplication1.Data.Migrations
column: "Expiration");
migrationBuilder.CreateIndex(
+ name: "IX_Keys_Use",
+ table: "Keys",
+ column: "Use");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_ConsumedTime",
+ table: "PersistedGrants",
+ column: "ConsumedTime");
+
+ migrationBuilder.CreateIndex(
name: "IX_PersistedGrants_Expiration",
table: "PersistedGrants",
column: "Expiration");
@@ -278,6 +306,9 @@ namespace Company.WebApplication1.Data.Migrations
name: "DeviceCodes");
migrationBuilder.DropTable(
+ name: "Keys");
+
+ migrationBuilder.DropTable(
name: "PersistedGrants");
migrationBuilder.DropTable(
diff --git a/src/content/Angular-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs b/src/content/Angular-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs
index dc7a40e..f99a549 100644
--- a/src/content/Angular-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs
+++ b/src/content/Angular-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs
@@ -84,7 +84,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -134,7 +134,46 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime2");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasMaxLength(50000);
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("bit");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("bit");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<int>("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
@@ -178,6 +217,8 @@ namespace Company.WebApplication1.Data.Migrations
b.HasKey("Key");
+ b.HasIndex("ConsumedTime");
+
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");
diff --git a/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs b/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs
index 840eccd..629c3bd 100644
--- a/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs
+++ b/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs
@@ -82,7 +82,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -132,7 +132,45 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasMaxLength(50000)
+ .HasColumnType("TEXT");
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("INTEGER");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("INTEGER");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("TEXT");
+
+ b.Property<int>("Version")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
@@ -176,6 +214,8 @@ namespace Company.WebApplication1.Data.Migrations
b.HasKey("Key");
+ b.HasIndex("ConsumedTime");
+
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");
diff --git a/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs b/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs
index 937b7e2..ee8aac5 100644
--- a/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs
+++ b/src/content/Angular-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs
@@ -66,6 +66,24 @@ namespace Company.WebApplication1.Data.Migrations
});
migrationBuilder.CreateTable(
+ name: "Keys",
+ columns: table => new
+ {
+ Id = table.Column<string>(type: "TEXT", nullable: false),
+ Version = table.Column<int>(type: "INTEGER", nullable: false),
+ Created = table.Column<DateTime>(type: "TEXT", nullable: false),
+ Use = table.Column<string>(type: "TEXT", maxLength: 450, nullable: true),
+ Algorithm = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
+ IsX509Certificate = table.Column<bool>(type: "INTEGER", nullable: false),
+ DataProtected = table.Column<bool>(type: "INTEGER", nullable: false),
+ Data = table.Column<string>(type: "TEXT", maxLength: 50000, nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Keys", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
name: "PersistedGrants",
columns: table => new
{
@@ -240,6 +258,16 @@ namespace Company.WebApplication1.Data.Migrations
column: "Expiration");
migrationBuilder.CreateIndex(
+ name: "IX_Keys_Use",
+ table: "Keys",
+ column: "Use");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_ConsumedTime",
+ table: "PersistedGrants",
+ column: "ConsumedTime");
+
+ migrationBuilder.CreateIndex(
name: "IX_PersistedGrants_Expiration",
table: "PersistedGrants",
column: "Expiration");
@@ -276,6 +304,9 @@ namespace Company.WebApplication1.Data.Migrations
name: "DeviceCodes");
migrationBuilder.DropTable(
+ name: "Keys");
+
+ migrationBuilder.DropTable(
name: "PersistedGrants");
migrationBuilder.DropTable(
diff --git a/src/content/Angular-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs b/src/content/Angular-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs
index 8d41a27..1e8a43c 100644
--- a/src/content/Angular-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs
+++ b/src/content/Angular-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs
@@ -80,7 +80,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -130,7 +130,45 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("TEXT")
+ .HasMaxLength(50000);
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("INTEGER");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("INTEGER");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("TEXT");
+
+ b.Property<int>("Version")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
@@ -174,6 +212,8 @@ namespace Company.WebApplication1.Data.Migrations
b.HasKey("Key");
+ b.HasIndex("ConsumedTime");
+
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");
diff --git a/src/content/React-CSharp/Data/ApplicationDbContext.cs b/src/content/React-CSharp/Data/ApplicationDbContext.cs
index c590d7e..1cc104d 100644
--- a/src/content/React-CSharp/Data/ApplicationDbContext.cs
+++ b/src/content/React-CSharp/Data/ApplicationDbContext.cs
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.ApiAuthorization.IdentityServer;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
-using IdentityServer4.EntityFramework.Options;
+using Duende.IdentityServer.EntityFramework.Options;
using Company.WebApplication1.Models;
namespace Company.WebApplication1.Data;
diff --git a/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs b/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs
index 259c3c7..763939f 100644
--- a/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs
+++ b/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.Designer.cs
@@ -86,7 +86,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -136,7 +136,46 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime2");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasMaxLength(50000);
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("bit");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("bit");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<int>("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
diff --git a/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs b/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs
index da38a79..aa6cbcd 100644
--- a/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs
+++ b/src/content/React-CSharp/Data/SQLServer/00000000000000_CreateIdentitySchema.cs
@@ -66,6 +66,24 @@ namespace Company.WebApplication1.Data.Migrations
});
migrationBuilder.CreateTable(
+ name: "Keys",
+ columns: table => new
+ {
+ Id = table.Column<string>(type: "nvarchar(450)", nullable: false),
+ Version = table.Column<int>(type: "int", nullable: false),
+ Created = table.Column<DateTime>(type: "datetime2", nullable: false),
+ Use = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: true),
+ Algorithm = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
+ IsX509Certificate = table.Column<bool>(type: "bit", nullable: false),
+ DataProtected = table.Column<bool>(type: "bit", nullable: false),
+ Data = table.Column<string>(type: "nvarchar(max)", maxLength: 50000, nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Keys", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
name: "PersistedGrants",
columns: table => new
{
@@ -242,6 +260,16 @@ namespace Company.WebApplication1.Data.Migrations
column: "Expiration");
migrationBuilder.CreateIndex(
+ name: "IX_Keys_Use",
+ table: "Keys",
+ column: "Use");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_ConsumedTime",
+ table: "PersistedGrants",
+ column: "ConsumedTime");
+
+ migrationBuilder.CreateIndex(
name: "IX_PersistedGrants_Expiration",
table: "PersistedGrants",
column: "Expiration");
@@ -278,6 +306,9 @@ namespace Company.WebApplication1.Data.Migrations
name: "DeviceCodes");
migrationBuilder.DropTable(
+ name: "Keys");
+
+ migrationBuilder.DropTable(
name: "PersistedGrants");
migrationBuilder.DropTable(
diff --git a/src/content/React-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs b/src/content/React-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs
index dc7a40e..20cdcf3 100644
--- a/src/content/React-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs
+++ b/src/content/React-CSharp/Data/SQLServer/ApplicationDbContextModelSnapshot.cs
@@ -84,7 +84,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -134,7 +134,46 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("nvarchar(100)");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("datetime2");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)")
+ .HasMaxLength(50000);
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("bit");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("bit");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("nvarchar(450)");
+
+ b.Property<int>("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
diff --git a/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs b/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs
index 840eccd..86563b0 100644
--- a/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs
+++ b/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.Designer.cs
@@ -82,7 +82,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -132,7 +132,45 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasMaxLength(50000)
+ .HasColumnType("TEXT");
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("INTEGER");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("INTEGER");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("TEXT");
+
+ b.Property<int>("Version")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
@@ -176,6 +214,8 @@ namespace Company.WebApplication1.Data.Migrations
b.HasKey("Key");
+ b.HasIndex("ConsumedTime");
+
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");
diff --git a/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs b/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs
index 937b7e2..ee8aac5 100644
--- a/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs
+++ b/src/content/React-CSharp/Data/SQLite/00000000000000_CreateIdentitySchema.cs
@@ -66,6 +66,24 @@ namespace Company.WebApplication1.Data.Migrations
});
migrationBuilder.CreateTable(
+ name: "Keys",
+ columns: table => new
+ {
+ Id = table.Column<string>(type: "TEXT", nullable: false),
+ Version = table.Column<int>(type: "INTEGER", nullable: false),
+ Created = table.Column<DateTime>(type: "TEXT", nullable: false),
+ Use = table.Column<string>(type: "TEXT", maxLength: 450, nullable: true),
+ Algorithm = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
+ IsX509Certificate = table.Column<bool>(type: "INTEGER", nullable: false),
+ DataProtected = table.Column<bool>(type: "INTEGER", nullable: false),
+ Data = table.Column<string>(type: "TEXT", maxLength: 50000, nullable: false)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_Keys", x => x.Id);
+ });
+
+ migrationBuilder.CreateTable(
name: "PersistedGrants",
columns: table => new
{
@@ -240,6 +258,16 @@ namespace Company.WebApplication1.Data.Migrations
column: "Expiration");
migrationBuilder.CreateIndex(
+ name: "IX_Keys_Use",
+ table: "Keys",
+ column: "Use");
+
+ migrationBuilder.CreateIndex(
+ name: "IX_PersistedGrants_ConsumedTime",
+ table: "PersistedGrants",
+ column: "ConsumedTime");
+
+ migrationBuilder.CreateIndex(
name: "IX_PersistedGrants_Expiration",
table: "PersistedGrants",
column: "Expiration");
@@ -276,6 +304,9 @@ namespace Company.WebApplication1.Data.Migrations
name: "DeviceCodes");
migrationBuilder.DropTable(
+ name: "Keys");
+
+ migrationBuilder.DropTable(
name: "PersistedGrants");
migrationBuilder.DropTable(
diff --git a/src/content/React-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs b/src/content/React-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs
index 8d41a27..f033d54 100644
--- a/src/content/React-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs
+++ b/src/content/React-CSharp/Data/SQLite/ApplicationDbContextModelSnapshot.cs
@@ -80,7 +80,7 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("AspNetUsers");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property<string>("UserCode")
.HasMaxLength(200)
@@ -130,7 +130,45 @@ namespace Company.WebApplication1.Data.Migrations
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.Key", b =>
+ {
+ b.Property<string>("Id")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Algorithm")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("Created")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Data")
+ .IsRequired()
+ .HasMaxLength(50000)
+ .HasColumnType("TEXT");
+
+ b.Property<bool>("DataProtected")
+ .HasColumnType("INTEGER");
+
+ b.Property<bool>("IsX509Certificate")
+ .HasColumnType("INTEGER");
+
+ b.Property<string>("Use")
+ .HasMaxLength(450)
+ .HasColumnType("TEXT");
+
+ b.Property<int>("Version")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Use");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("Duende.IdentityServer.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property<string>("Key")
.HasMaxLength(200)
@@ -174,6 +212,8 @@ namespace Company.WebApplication1.Data.Migrations
b.HasKey("Key");
+ b.HasIndex("ConsumedTime");
+
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");