asp.net-identity - 身份服务器 : How to create databases for EF support & aspnet Identity support

标签 asp.net-identity identityserver3 identityserver4

因此,根据 IdentityServer3 文档,我可以使用 Entity Framework 来存储客户端、范围和操作数据 ( documentation here ) 我需要使用 Install-Package IdentityServer3.EntityFramework 安装 block 包 但是我找不到任何有关如何创建数据库的说明。我需要运行什么命令或脚本才能创建底层数据库

同样的问题也适用于用户存储。我计划使用 Asp.Net 身份来存储用户信息。我需要安装 Install-Package IdentityServer3.AspNetIdentity 包。没有关于创建数据库结构的明确说明

有对应的示例工程EntityFrameworkAspnetIdentity但可以相信这些项目是否使用最新的架构。 示例项目还使用示例数据创建数据库。我想要干净的数据库结构。

最佳答案

文档清楚地表明您负责数据库架构和迁移:https://identityserver.github.io/Documentation/docsv2/ef/migrations.html

关于asp.net-identity - 身份服务器 : How to create databases for EF support & aspnet Identity support,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38317270/

相关文章:

asp.net-mvc - 在 Asp.Net Core 1 (MVC6) 和 MVC 5 应用程序之间共享身份验证 cookie

authentication - 操作的 AuthorizeAttribute

c# - AspNet.Core,IdentityServer 4 : Unauthorized (401) during websocket handshake with SignalR 1. 0 使用 JWT 不记名 token

identityserver4 - Identity Server 4 访问 token 生命周期已超出其生命周期

c# - 使用自定义表扩展 asp.net mvc 5 身份

c# - .Net 核心身份和 Azure AD 身份验证

oauth-2.0 - 使用 Identity Server 4 在 Web API 2 Framework 4.x 中进行访问 token 验证

docker - ASP.NET Core Web API 客户端不信任 Identity Server 实例使用的自签名证书

c# - 为什么 Asp.Net Identity IdentityDbContext 是黑盒?

c# - ThinkTecture IdentityServer3 与 Microsoft.Owin.Security.OAuth2