微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.在这个项目中,您可以了解如何实现允许在数据库之间切换的系统.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐