gpt4 book ai didi

asp.net-core - 是否可以将 NoSQL 用于 Identity Server 4?

转载 作者:行者123 更新时间:2023-12-04 02:18:26 25 4
gpt4 key购买 nike

我正在尝试将 NoSql 数据存储集成到 Identity Server 4(例如 Cosmos DB)中。我想知道是否有人做过类似的事情和/或是否有可能。

最佳答案

当然,IdentityServer4 可以使用 NoSQL 数据库。为什么不呢?

这是一个带有 MongoDB 的示例

"initial plumbing" in ConfigureServices() method at startup.cs.


 public void ConfigureServices(IServiceCollection services)
{
...
// --- configure identity server with MONGO Repository for stores, keys, clients and scopes ---
services.AddIdentityServer()
.AddTemporarySigningCredential()
.AddMongoRepository()
.AddClients()
.AddIdentityApiResources()
.AddPersistedGrants()
.AddTestUsers(Config.GetUsers());
...
}

还有一个github项目 cloudscribe , ASP.NET Core Multi-Tenancy Web 应用程序基础,可管理站点、用户、角色、声明等。该项目正在为 IdentityServer 实现 PostgreSQL (ORDBMS) 和 MySql。在这个项目中,您可以了解如何实现一个允许在数据库之间切换的系统。

关于asp.net-core - 是否可以将 NoSQL 用于 Identity Server 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45847426/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com