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

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

解决方法

当然,可以将Nosql数据库用于IdentityServer4.为什么不?

这是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核心多租户Web应用程序基础,包含对站点,用户,角色,声明等的管理.该项目正在为IdentityServer实现Postgresql(ORDBMS)和MysqL.在这个项目中,您可以了解如何实现允许在数据库之间切换的系统.

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....